Commit 2911c39c authored by Walter Harms's avatar Walter Harms Committed by Walter Harms

Fixes: warning: variable 'req' set but not,used

Fixes: warning: variable 'req' set but not used [-Wunused-but-set-variable]
       by marking req _X_UNUSED
	Solution was discussed on xorg-devel ML
       Peter Hutter, Alan Coopersmith
        Re: [PATCH libX11 3/5] fix: warning: pointer targets in passing argument 2 of '_XSend' differ in signedness [-Wpointer-sign]

Signed-off-by: harms wharms@bfs.de
parent bf82ec04
......@@ -42,7 +42,7 @@ char **XGetFontPath(
int count = 0;
register unsigned i;
register int length;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq (GetFontPath, req);
......
......@@ -36,7 +36,7 @@ XGetInputFocus(
int *revert_to)
{
xGetInputFocusReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetInputFocus, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xTrue);
......
......@@ -35,7 +35,7 @@ XGetKeyboardControl (
register XKeyboardState *state)
{
xGetKeyboardControlReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq (GetKeyboardControl, req);
(void) _XReply (dpy, (xReply *) &rep,
......
......@@ -38,7 +38,7 @@ XGetPointerControl(
int *threshold)
{
xGetPointerControlReply rep;
xReq *req;
_X_UNUSED xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetPointerControl, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xTrue);
......
......@@ -45,7 +45,7 @@ int XGetPointerMapping (
unsigned char mapping[256]; /* known fixed size */
unsigned long nbytes, remainder = 0;
xGetPointerMappingReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetPointerMapping, req);
......
......@@ -40,7 +40,7 @@ XGetScreenSaver(
{
xGetScreenSaverReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetScreenSaver, req);
......
......@@ -32,7 +32,7 @@ in this Software without prior written authorization from The Open Group.
int
XGrabServer (register Display *dpy)
{
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GrabServer, req);
UnlockDisplay(dpy);
......
......@@ -77,7 +77,7 @@ XHostAddress *XListHosts (
xListHostsReply reply;
unsigned char *buf, *bp;
register unsigned i;
register xListHostsReq *req;
_X_UNUSED register xListHostsReq *req;
XServerInterpretedAddress *sip;
*nhosts = 0;
......
......@@ -41,7 +41,7 @@ char **XListExtensions(
int count = 0;
register unsigned i;
register int length;
register xReq *req;
_X_UNUSED register xReq *req;
unsigned long rlen = 0;
LockDisplay(dpy);
......
......@@ -283,7 +283,7 @@ int XAddPixel(
int
XNoOp (register Display *dpy)
{
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(NoOperation, req);
......
......@@ -39,7 +39,7 @@ XQueryKeymap(
char keys[32])
{
xQueryKeymapReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(QueryKeymap, req);
......
......@@ -105,7 +105,7 @@ Status XReconfigureWMWindow (
*/
{
xGetInputFocusReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
GetEmptyReq(GetInputFocus, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xTrue);
......
......@@ -37,7 +37,7 @@ XSync (
Bool discard)
{
xGetInputFocusReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(GetInputFocus, req);
......
......@@ -33,7 +33,7 @@ int
XUngrabServer (
register Display *dpy)
{
register xReq *req;
_X_UNUSED register xReq *req;
LockDisplay(dpy);
GetEmptyReq(UngrabServer, req);
......
......@@ -196,7 +196,7 @@ void _XSeqSyncFunction(
register Display *dpy)
{
xGetInputFocusReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
if ((X_DPY_GET_REQUEST(dpy) - X_DPY_GET_LAST_REQUEST_READ(dpy)) >= (65535 - BUFSIZE/SIZEOF(xReq))) {
GetEmptyReq(GetInputFocus, req);
......
......@@ -181,7 +181,7 @@ CmapRecForColormap(
}
{
xGetInputFocusReply rep;
register xReq *req;
_X_UNUSED register xReq *req;
GetEmptyReq(GetInputFocus, req);
(void) _XReply (dpy, (xReply *)&rep, 0, xTrue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment