aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-07 16:06:36 -0800
committerPaul Eggert2011-03-07 16:06:36 -0800
commitd6550a9f3013b49b2d04395ed19f0ea1ec683e6c (patch)
tree4899df138183fc0a6fc166dda12727cab28c2df7 /src
parenta586633d66b8da9634c600de93279e244f29c939 (diff)
downloademacs-d6550a9f3013b49b2d04395ed19f0ea1ec683e6c.tar.gz
emacs-d6550a9f3013b49b2d04395ed19f0ea1ec683e6c.zip
2011-03-08 Paul Eggert <eggert@cs.ucla.edu>
* window.c (size_window): Mark variables that gcc -Wuninitialized does not deduce are never used uninitialized.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/window.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ac2f0c418e1..e3b3c8c2566 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,4 +1,6 @@
12011-03-07 Paul Eggert <eggert@cs.ucla.edu> 12011-03-08 Paul Eggert <eggert@cs.ucla.edu>
2
32011-03-08 Paul Eggert <eggert@cs.ucla.edu>
2 4
3 * xmenu.c (menu_highlight_callback): Now static. 5 * xmenu.c (menu_highlight_callback): Now static.
4 (set_frame_menubar): Remove unused local. 6 (set_frame_menubar): Remove unused local.
@@ -23,6 +25,8 @@
23 (run_window_configuration_change_hook, enlarge_window): Likewise. 25 (run_window_configuration_change_hook, enlarge_window): Likewise.
24 26
25 * window.c (display_buffer): Now static. 27 * window.c (display_buffer): Now static.
28 (size_window): Mark variables that gcc -Wuninitialized
29 does not deduce are never used uninitialized.
26 * window.h (check_all_windows): New decl, to forestall 30 * window.h (check_all_windows): New decl, to forestall
27 gcc -Wmissing-prototypes diagnostic. 31 gcc -Wmissing-prototypes diagnostic.
28 32
diff --git a/src/window.c b/src/window.c
index 838be475d51..eaa910571e0 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3124,7 +3124,7 @@ size_window (Lisp_Object window, int size, int width_p, int nodelete_p, int firs
3124 } 3124 }
3125 else if (!NILP (*forward)) 3125 else if (!NILP (*forward))
3126 { 3126 {
3127 int fixed_size, each, extra, n; 3127 int fixed_size, each IF_LINT (= 0), extra IF_LINT (= 0), n;
3128 int resize_fixed_p, nfixed; 3128 int resize_fixed_p, nfixed;
3129 int last_pos, first_pos, nchildren, total; 3129 int last_pos, first_pos, nchildren, total;
3130 int *new_sizes = NULL; 3130 int *new_sizes = NULL;
@@ -5522,7 +5522,7 @@ and redisplay normally--don't erase and redraw the frame. */)
5522 struct buffer *obuf = current_buffer; 5522 struct buffer *obuf = current_buffer;
5523 int center_p = 0; 5523 int center_p = 0;
5524 EMACS_INT charpos, bytepos; 5524 EMACS_INT charpos, bytepos;
5525 int iarg; 5525 int iarg IF_LINT (= 0);
5526 int this_scroll_margin; 5526 int this_scroll_margin;
5527 5527
5528 /* If redisplay is suppressed due to an error, try again. */ 5528 /* If redisplay is suppressed due to an error, try again. */