diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 21:44:30 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2020-01-09 21:51:57 +0100 |
commit | 7977b9f8f1c6b0ab9a37ce33fc53b8ef36400262 (patch) | |
tree | 4431e26cb4f061dbe394e38d06cc212499d643de /nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | |
parent | a93e25077c84f08a1aeea88968c3629909961a92 (diff) | |
download | nx-libs-7977b9f8f1c6b0ab9a37ce33fc53b8ef36400262.tar.gz nx-libs-7977b9f8f1c6b0ab9a37ce33fc53b8ef36400262.tar.bz2 nx-libs-7977b9f8f1c6b0ab9a37ce33fc53b8ef36400262.zip |
Pixmap.c: fix variable shadowing
Pixmap.c: In function ‘nxagentDisconnectAllPixmaps’:
Pixmap.c:677:19: warning: declaration of ‘r’ shadows a previous local [-Wshadow=compatible-local]
for (int i = 0, r = 1; i < MAXCLIENTS; r = 1, i++)
^
Pixmap.c:652:7: note: shadowed declaration is here
int r = 1;
^
Pixmap.c: In function ‘nxagentReconnectAllPixmaps’:
Pixmap.c:840:19: warning: declaration of ‘result’ shadows a previous local [-Wshadow=compatible-local]
for (int i = 0, result = 1; i < MAXCLIENTS; result = 1, i++)
^~~~~~
Pixmap.c:807:8: note: shadowed declaration is here
Bool result = 1;
^~~~~~
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Reconnect.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c index 86d3ba502..ff7033c6c 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c @@ -519,6 +519,7 @@ Bool nxagentReconnectSession(void) nxagentEmptyBSPixmapList(); + /* FIXME: nxagentReconnectAllPixmaps will always return 1 */ if (nxagentReconnectAllPixmaps(reconnectLossyLevel[PIXMAP_STEP]) == 0) { failedStep = PIXMAP_STEP; |