From: Paul Eggert Date: Sat, 16 Apr 2011 15:39:35 +0000 (-0700) Subject: * xfns.c (x_real_positions): Mark locals as initialized. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2~28 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ffc96f57165b07ae661ac4b71e18431d792d6cd;p=emacs.git * xfns.c (x_real_positions): Mark locals as initialized. --- diff --git a/src/ChangeLog b/src/ChangeLog index 9a429af4b9e..cb3ef75a3aa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-16 Paul Eggert + * xfns.c (x_real_positions): Mark locals as initialized. + * xmenu.c (xmenu_show): Don't use uninitialized vars. * xterm.c: Fix problems found by static analysis with other toolkits. diff --git a/src/xfns.c b/src/xfns.c index aa373f3a82f..846ba16d1ba 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -427,7 +427,7 @@ x_top_window_to_frame (struct x_display_info *dpyinfo, int wdesc) void x_real_positions (FRAME_PTR f, int *xptr, int *yptr) { - int win_x, win_y, outer_x, outer_y; + int win_x, win_y, outer_x IF_LINT (= 0), outer_y IF_LINT (= 0); int real_x = 0, real_y = 0; int had_errors = 0; Window win = f->output_data.x->parent_desc;