aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-03-08 22:32:01 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-08-22 15:36:55 +0200
commit0db17707384b62d2001618053c80d76dcf5cfb6c (patch)
treeec080c880729d56941b0d058328a7d89d25719af /nx-X11
parent553b96f0551d660d0700de49da880cf99d9c9168 (diff)
downloadnx-libs-0db17707384b62d2001618053c80d76dcf5cfb6c.tar.gz
nx-libs-0db17707384b62d2001618053c80d76dcf5cfb6c.tar.bz2
nx-libs-0db17707384b62d2001618053c80d76dcf5cfb6c.zip
Events.c: drop variable that caused compilation warning
Fixes this message when compiling with TEST: Events.c:2725:22: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] message_data = validateString(NameForAtom(x.u.clientMessage.u.l.longs0));
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index a1376092d..071e93b32 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -2693,10 +2693,6 @@ int nxagentHandleClientMessageEvent(XEvent *X, enum HandleEventResult *result)
if (message_type == MakeAtom("WM_PROTOCOLS", strlen("WM_PROTOCOLS"), False))
{
- #ifdef TEST
- char *message_data;
- #endif
-
xEvent x;
memset(&x, 0, sizeof(xEvent));
@@ -2720,11 +2716,9 @@ int nxagentHandleClientMessageEvent(XEvent *X, enum HandleEventResult *result)
#ifdef TEST
else
{
- message_data = validateString(NameForAtom(x.u.clientMessage.u.l.longs0));
+ fprintf(stderr, "nxagentHandleClientMessageEvent: Sent client message of type WM_PROTOCOLS "
+ "and value [%s].\n", validateString(NameForAtom(x.u.clientMessage.u.l.longs0)));
}
-
- fprintf(stderr, "nxagentHandleClientMessageEvent: Sent client message of type WM_PROTOCOLS "
- "and value [%s].\n", message_data);
#endif
TryClientEvents(wClient(pWin), &x, 1, 1, 1, 0);