diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 21:25:31 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 21:25:31 +0100 |
commit | a93e25077c84f08a1aeea88968c3629909961a92 (patch) | |
tree | 613a5b42b427c71416ae67500665be73f3bd641c | |
parent | 7031219d94573bcf1ae4213cb62182a1002e0a7b (diff) | |
download | nx-libs-a93e25077c84f08a1aeea88968c3629909961a92.tar.gz nx-libs-a93e25077c84f08a1aeea88968c3629909961a92.tar.bz2 nx-libs-a93e25077c84f08a1aeea88968c3629909961a92.zip |
Display.c: fix shadowed/unused variable
Display.c: In function ‘nxagentInitAndCheckVisuals’:
Display.c:2273:10: warning: declaration of ‘matched’ shadows a previous local [-Wshadow=compatible-local]
bool matched = false;
^~~~~~~
Display.c:2258:8: note: shadowed declaration is here
bool matched;
^~~~~~~
Display.c:2258:8: warning: unused variable ‘matched’ [-Wunused-variable]
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Display.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c index dad6bfb2b..3284857c2 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Display.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c @@ -2255,7 +2255,6 @@ static int nxagentInitAndCheckVisuals(int flexibility) { /* FIXME: does this also need work? */ - bool matched; bool compatible = true; long viMask = VisualScreenMask; |