From 9d9d1409f47ca6edc8f95e416a283820034a2cb3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 29 Jan 2015 10:20:18 +0100 Subject: [PATCH] Avoid complaints about unused variable in argument less requests The REQUEST macro is used to access variables in the request data, and if we don't then the compiler complains that the macro sets up variables that we never use. --- unix/xserver/hw/vnc/vncExt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/unix/xserver/hw/vnc/vncExt.c b/unix/xserver/hw/vnc/vncExt.c index 561e292c..2f5ff5c7 100644 --- a/unix/xserver/hw/vnc/vncExt.c +++ b/unix/xserver/hw/vnc/vncExt.c @@ -354,7 +354,6 @@ static int ProcVncExtListParams(ClientPtr client) char *params; size_t len; - REQUEST(xVncExtListParamsReq); REQUEST_SIZE_MATCH(xVncExtListParamsReq); rep.type = X_Reply; @@ -429,7 +428,6 @@ static int ProcVncExtGetClientCutText(ClientPtr client) { xVncExtGetClientCutTextReply rep; - REQUEST(xVncExtGetClientCutTextReq); REQUEST_SIZE_MATCH(xVncExtGetClientCutTextReq); rep.type = X_Reply; @@ -581,7 +579,6 @@ static int ProcVncExtGetQueryConnect(ClientPtr client) xVncExtGetQueryConnectReply rep; - REQUEST(xVncExtGetQueryConnectReq); REQUEST_SIZE_MATCH(xVncExtGetQueryConnectReq); vncGetQueryConnect(&opaqueId, &qcAddress, &qcUsername, &qcTimeout); -- 2.39.5