From: Paul Eggert Date: Sat, 2 Apr 2011 02:39:52 +0000 (-0700) Subject: * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~394^2~59 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a60e5f6862fe24f8f8225eb517f2bfcaffb46923;p=emacs.git * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized. --- diff --git a/src/ChangeLog b/src/ChangeLog index b629c5ca10d..a147bd12cf4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-04-02 Paul Eggert + * 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. diff --git a/src/gtkutil.c b/src/gtkutil.c index 4e5ecce76c7..4b53915c416 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1704,7 +1704,7 @@ xg_get_file_with_chooser (FRAME_PTR f, { char msgbuf[1024]; - GtkWidget *filewin, *wtoggle, *wbox, *wmessage; + GtkWidget *filewin, *wtoggle, *wbox, *wmessage IF_LINT (= NULL); GtkWindow *gwin = GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)); GtkFileChooserAction action = (mustmatch_p ? GTK_FILE_CHOOSER_ACTION_OPEN :