Paul Eggert
b25d760e18
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
...
This avoids several warnings with gcc -Wstrict-overflow.
2011-04-04 23:24:54 -07:00
Paul Eggert
625a3eb1e2
* xfont.c (xfont_open): Avoid unnecessary tests.
2011-04-04 22:14:06 -07:00
Paul Eggert
bc7b669731
* xfont.c (xfont_text_extents): Remove var that was set but not used.
2011-04-04 22:12:02 -07:00
Paul Eggert
27ccc379bf
* composite.c (composition_gstring_put_cache): Use unsigned integer.
2011-04-04 22:11:14 -07:00
Paul Eggert
dcd5c89a9e
* composite.h, composite.c (composition_gstring_put_cache):
...
Use EMACS_INT, not int, for length.
2011-04-04 12:53:59 -07:00
Paul Eggert
b13a45c6f9
* composite.h (COMPOSITION_DECODE_REFS): New macro,
...
breaking out part of COMPOSITION_DECODE_RULE.
(COMPOSITION_DECODE_RULE): Use it.
* composite.c (get_composition_id): Remove unused local vars,
by using the new macro.
2011-04-04 12:46:32 -07:00
Paul Eggert
1e792e4d80
* textprop.c (set_text_properties_1): Change while to do-while,
...
since the condition is always true at first.
2011-04-04 12:30:48 -07:00
Paul Eggert
aa86731f74
* intervals.c (interval_deletion_adjustment): Return unsigned value.
...
All uses changed.
2011-04-04 09:47:31 -07:00
Paul Eggert
dc6c6455c2
* intervals.c (graft_intervals_into_buffer): Mark var as used.
2011-04-04 02:08:31 -07:00
Paul Eggert
fe07cdfa53
* process.c (read_process_output): Simplify nbytes computation if buffered.
2011-04-04 02:06:52 -07:00
Paul Eggert
82eaa3332c
* process.c (read_process_output): Do adaptive read buffering even if carryover.
2011-04-04 02:04:33 -07:00
Paul Eggert
bc57d757a2
* process.c (Fnetwork_interface_info): Avoid possibility of int overflow.
2011-04-04 01:13:45 -07:00
Paul Eggert
afd4052b6c
* process.c (create_pty): Remove unnecessary "volatile"s.
2011-04-04 01:11:21 -07:00
Paul Eggert
aba7731a6c
* process.c (list_processes_1, create_pty, read_process_output):
...
(exec_sentinel): Remove vars that were set but not used.
2011-04-04 01:09:01 -07:00
Paul Eggert
fdfc4bf34e
* bytecode.c (exec_byte_code): Rename local to avoid shadowing.
2011-04-04 00:55:46 -07:00
Paul Eggert
12cbf13fe4
* syntax.c (update_syntax_table): Use unsigned instead of int.
2011-04-04 00:53:20 -07:00
Paul Eggert
fca8fe46b7
* syntax.c (scan_words): Remove var that was set but not used.
2011-04-04 00:50:49 -07:00
Paul Eggert
e6eb4e9e04
* lread.c (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
2011-04-04 00:48:36 -07:00
Paul Eggert
3c346cc30f
* lread.c (lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
2011-04-04 00:48:08 -07:00
Paul Eggert
06a0259a1a
* lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
2011-04-04 00:33:02 -07:00
Paul Eggert
e7b9e80fe2
* print.c (print_error_message): Avoid int overflow.
2011-04-03 23:52:29 -07:00
Paul Eggert
5620168569
* font.c (font_list_entities): Redo for clarity,
...
so that reader need not know FONT_DPI_INDEX + 1 == FONT_SPACING_INDEX.
2011-04-03 23:29:11 -07:00
Paul Eggert
790771b18c
* font.c (font_score): Avoid potential overflow in diff calculation.
2011-04-03 00:05:43 -07:00
Paul Eggert
7883445307
* font.c (font_find_for_lface, Ffont_get_glyphs): Remove unused vars.
2011-04-02 23:01:50 -07:00
Paul Eggert
8cd55cb48a
* fns.c (sxhash): Redo loop for clarity and to avoid wraparound warning.
2011-04-02 22:56:37 -07:00
Paul Eggert
0bc0b309f6
* fns.c (substring_both): Remove var that is set but not used.
2011-04-02 22:46:57 -07:00
Paul Eggert
e610eacace
* eval.c (funcall_lambda): Rename local to avoid shadowing.
2011-04-02 22:44:38 -07:00
Paul Eggert
b895abced9
* alloc.c (mark_object_loop_halt, mark_object): Use size_t, not int.
...
Otherwise, GCC 4.6.0 optimizes the loop check away since the check
can always succeed if overflow has undefined behavior.
2011-04-02 22:41:46 -07:00
Paul Eggert
6f076cc771
* search.c (wordify): Omit three unnecessary tests.
2011-04-02 21:21:50 -07:00
Paul Eggert
1f1d93214d
* search.c (boyer_moore, wordify): Remove vars set but not used.
2011-04-02 18:52:02 -07:00
Paul Eggert
c59478bce2
* indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
...
All callers changed. This avoids the need for an unused var.
2011-04-02 18:00:03 -07:00
Paul Eggert
79b7382774
* casefiddle.c (casify_region): Remove var that is set but not used.
2011-04-02 17:33:43 -07:00
Paul Eggert
a4db5dfeb1
* dired.c (file_name_completion): Remove var that is set but not used.
2011-04-02 17:32:58 -07:00
Paul Eggert
43aae36e04
* fileio.c (Finsert_file_contents): Make EOF condition clearer.
2011-04-02 17:32:10 -07:00
Paul Eggert
163c5f3291
* fileio.c (Finsert_file_contents): Remove unnecessary code checking fd.
2011-04-02 01:43:04 -07:00
Paul Eggert
2a47c44da2
* fileio.c (Finsert_file_contents): Avoid signed integer overflow.
2011-04-02 01:00:56 -07:00
Paul Eggert
a37c69bff6
* minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
...
Check for integer overflow on size calculations.
2011-04-02 00:40:13 -07:00
Paul Eggert
328ab8e7b5
* buffer.c (Fprevious_overlay_change): Remove var that is set
...
but not used.
2011-04-02 00:36:27 -07:00
Paul Eggert
6b043475f6
* keyboard.c (timer_check_2): Mark vars as initialized.
2011-04-02 00:34:01 -07:00
Paul Eggert
8d84a6ebe0
* keyboard.c (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
2011-04-02 00:21:52 -07:00
Paul Eggert
03733ee728
Add Bug#.
2011-04-02 00:06:05 -07:00
Paul Eggert
e5a2a5cbf4
* keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
...
Remove vars that are set but not used.
2011-04-01 19:42:05 -07:00
Paul Eggert
a60e5f6862
* gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
2011-04-01 19:39:52 -07:00
Paul Eggert
35fa624fb2
* image.c (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
2011-04-01 19:38:27 -07:00
Paul Eggert
f661cb610a
* image.c (lookup_image): Remove var that is set but not used.
2011-04-01 19:36:48 -07:00
Paul Eggert
f0397f5aa3
* fontset.c (Finternal_char_font, Ffontset_info): Remove vars
...
that are set but not used.
2011-04-01 19:25:18 -07:00
Paul Eggert
8664db0623
* xfns.c (make_invisible_cursor): Don't return garbage
...
if XCreateBitmapFromData fails.
2011-04-01 19:06:43 -07:00
Paul Eggert
6abdaa4a9f
* xselect.c (x_get_local_selection, x_handle_property_notify):
...
Remove vars that are set but not used.
(make_invisible_cursor): Initialize a possibly-uninitialized variable.
2011-04-01 19:02:18 -07:00
Paul Eggert
0ce7538dd2
* xfns.c (x_create_tip_frame): Remove var that is set but not used.
2011-04-01 13:30:45 -07:00
Paul Eggert
8e48d7bc3f
* make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.
...
(write_c_args): Use it to suppress GCC warning.
2011-04-01 13:28:50 -07:00