From a60e5f6862fe24f8f8225eb517f2bfcaffb46923 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 1 Apr 2011 19:39:52 -0700 Subject: [PATCH] * gtkutil.c (xg_get_file_with_chooser): Mark var as initialized. --- src/ChangeLog | 2 ++ src/gtkutil.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 : -- 2.39.2