Commit 30cd3a6c authored by Mike Gabriel's avatar Mike Gabriel

hw/nxagent/Display.c: Don't declare and assign packMethod / packQuality if not used later on.

Amends the following compiler warnings: ``` Display.c: In function ‘nxagentReconnectDisplay’: Display.c:2449:19: warning: variable ‘packQuality’ set but not used [-Wunused-but-set-variable] int packMethod, packQuality; ^ Display.c:2449:7: warning: variable ‘packMethod’ set but not used [-Wunused-but-set-variable] int packMethod, packQuality; ^ ```
parent ab196f3a
...@@ -2446,7 +2446,6 @@ Bool nxagentReconnectDisplay(void *p0) ...@@ -2446,7 +2446,6 @@ Bool nxagentReconnectDisplay(void *p0)
{ {
int i; int i;
int flexibility = *(int*)p0; int flexibility = *(int*)p0;
int packMethod, packQuality;
#if defined(NXAGENT_RECONNECT_DEBUG) || defined(NXAGENT_RECONNECT_DISPLAY_DEBUG) #if defined(NXAGENT_RECONNECT_DEBUG) || defined(NXAGENT_RECONNECT_DISPLAY_DEBUG)
fprintf(stderr, "nxagentReconnectDisplay\n"); fprintf(stderr, "nxagentReconnectDisplay\n");
...@@ -2464,9 +2463,6 @@ Bool nxagentReconnectDisplay(void *p0) ...@@ -2464,9 +2463,6 @@ Bool nxagentReconnectDisplay(void *p0)
* Reset the values to their defaults. * Reset the values to their defaults.
*/ */
packMethod = nxagentPackMethod;
packQuality = nxagentPackQuality;
nxagentPackMethod = -1; nxagentPackMethod = -1;
nxagentPackQuality = -1; nxagentPackQuality = -1;
nxagentSplitThreshold = -1; nxagentSplitThreshold = -1;
......
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