* fns.c (substring_both): Remove var that is set but not used.
[bpt/emacs.git] / src / ChangeLog
index 2d26daf..04a2786 100644 (file)
@@ -1,12 +1,51 @@
+2011-04-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fns.c (substring_both): Remove var that is set but not used.
+
+       * eval.c (funcall_lambda): Rename local to avoid shadowing.
+
+       * 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.
+
+       * search.c (boyer_moore, wordify): Remove vars set but not used.
+       (wordify): Omit three unnecessary tests.
+
+       * indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
+       All callers changed.  This avoids the need for an unused var.
+
+       * casefiddle.c (casify_region): Remove var that is set but not used.
+
+       * dired.c (file_name_completion): Remove var that is set but not used.
+
+       * fileio.c (Finsert_file_contents): Make EOF condition clearer.
+
 2011-04-02  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * fileio.c (Finsert_file_contents): Avoid signed integer overflow.
+       (Finsert_file_contents): Remove unnecessary code checking fd.
+
+       * minibuf.c (read_minibuf_noninteractive): Use size_t for sizes.
+       Check for integer overflow on size calculations.
+
+       * buffer.c (Fprevious_overlay_change): Remove var that is set
+       but not used.
+
+       * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
+       Remove vars that are set but not used.
+       (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
+       (timer_check_2): Mark vars as initialized.
+
+       * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized.
+
        * image.c (lookup_image): Remove var that is set but not used.
+       (xbm_load): Use parse_p, for gcc -Werror=unused-but-set-variable.
 
        * fontset.c (Finternal_char_font, Ffontset_info): Remove vars
        that are set but not used.
 
        * xfns.c (make_invisible_cursor): Don't return garbage
-       if XCreateBitmapFromData fails.
+       if XCreateBitmapFromData fails (Bug#8410).
 
        * xselect.c (x_get_local_selection, x_handle_property_notify):
        Remove vars that are set but not used.