fix build-error for -Werror=unused-but-set-variable
authorBoram Park <boram1288.park@samsung.com>
Mon, 24 Jun 2013 03:40:44 +0000 (12:40 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 24 Jun 2013 03:44:54 +0000 (12:44 +0900)
Change-Id: Icae14884dc48593b95f51bf838005c347a822361

common/xdbg_evlog_randr.c
common/xdbg_evlog_reply.c

index d2088fa..0269faa 100644 (file)
@@ -647,7 +647,7 @@ _EvlogReplyRandr (EvlogInfo *evinfo, int detail_level, char *reply, int *len)
 
         case X_RRGetOutputInfo:
         {
-            static int nCrtcs, nModes, nPreferred, nClones, namelength;
+            static int nCrtcs, nModes, nClones, namelength;
             if (evinfo->rep.isStart)
             {
                 xRRGetOutputInfoReply *stuff = (xRRGetOutputInfoReply *)rep;
@@ -663,7 +663,6 @@ _EvlogReplyRandr (EvlogInfo *evinfo, int detail_level, char *reply, int *len)
 
                 nCrtcs = stuff->nCrtcs;
                 nModes = stuff->nModes;
-                nPreferred = stuff->nPreferred;
                 nClones = stuff->nClones;
                 namelength = stuff->nameLength;
             }
index d524e83..a2d28f6 100644 (file)
@@ -65,14 +65,12 @@ xDbgEvlogReply (EvlogInfo *evinfo, int detail_level, char *reply, int *len)
     extern ExtensionInfo Evlog_extensions[];
     extern int Extensions_size;
     EvlogReply rep;
-    xGenericReply *xRep = NULL;
     int i;
 
     RETURN_VAL_IF_FAIL (evinfo != NULL, reply);
     RETURN_VAL_IF_FAIL (evinfo->type == REPLY, reply);
 
     rep = evinfo->rep;
-    xRep = rep.ptr;
 
     if (rep.isStart)
         REPLY ("%s", evinfo->rep.name);