From 348151fd0204a4ae0aa76bc3312cf045d7a6a2dd Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 16 Mar 2021 09:09:37 +0100 Subject: warning: declaration of a variable shadows a previous local --- src/core/display.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/display.c b/src/core/display.c index f79e60ea..3b52c8b4 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -403,8 +403,8 @@ meta_display_open (void) XInternAtoms (the_display->xdisplay, atom_names, G_N_ELEMENTS (atom_names), False, atoms); { - int i = 0; -#define item(x) the_display->atom_##x = atoms[i++]; + int idx = 0; +#define item(x) the_display->atom_##x = atoms[idx++]; #include "atomnames.h" #undef item } @@ -5240,7 +5240,6 @@ prefs_changed_callback (MetaPreference pref, if (pref == META_PREF_MOUSE_BUTTON_MODS || pref == META_PREF_FOCUS_MODE) { - MetaDisplay *display = data; GSList *windows; GSList *tmp; @@ -5290,7 +5289,6 @@ prefs_changed_callback (MetaPreference pref, } else if (pref == META_PREF_ATTACH_MODAL_DIALOGS) { - MetaDisplay *display = data; GSList *windows; GSList *tmp; -- cgit v1.2.1