aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-09 21:25:31 +0100
committerUlrich Sibiller <uli42@gmx.de>2020-01-09 21:25:31 +0100
commita93e25077c84f08a1aeea88968c3629909961a92 (patch)
tree613a5b42b427c71416ae67500665be73f3bd641c /nx-X11
parent7031219d94573bcf1ae4213cb62182a1002e0a7b (diff)
downloadnx-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]
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Display.c1
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;