summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-02-18 00:18:52 -0800
committerVinson Lee <[email protected]>2012-02-18 11:02:01 -0800
commite77e88740d8861affa5b3bfa69dd1745d3c4484a (patch)
treead757cc3ffaac29b0a330ca2781a639074ed8767
parentc67a1f1d5366dc20cd07d9b677a335ff537da193 (diff)
st/glx: Remove unused variables.
Fixes these GCC warnings. glx_api.c: In function ‘choose_visual’: glx_api.c:678:8: warning: variable ‘trans_value’ set but not used [-Wunused-but-set-variable] glx_api.c:677:8: warning: variable ‘trans_type’ set but not used [-Wunused-but-set-variable] glx_api.c:663:8: warning: variable ‘min_ci’ set but not used [-Wunused-but-set-variable] Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: José Fonseca <[email protected]>
-rw-r--r--src/gallium/state_trackers/glx/xlib/glx_api.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c
index d034fb5bb35..8ad10f1c824 100644
--- a/src/gallium/state_trackers/glx/xlib/glx_api.c
+++ b/src/gallium/state_trackers/glx/xlib/glx_api.c
@@ -660,7 +660,6 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
const GLboolean rgbModeDefault = fbConfig;
const int *parselist;
XVisualInfo *vis;
- int min_ci = 0;
int min_red=0, min_green=0, min_blue=0;
GLboolean rgb_flag = rgbModeDefault;
GLboolean alpha_flag = GL_FALSE;
@@ -674,8 +673,6 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
GLint accumAlphaSize = 0;
int level = 0;
int visual_type = DONT_CARE;
- int trans_type = DONT_CARE;
- int trans_value = DONT_CARE;
GLint caveat = DONT_CARE;
XMesaVisual xmvis = NULL;
int desiredVisualID = -1;
@@ -700,7 +697,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
break;
case GLX_BUFFER_SIZE:
parselist++;
- min_ci = *parselist++;
+ parselist++;
break;
case GLX_LEVEL:
parselist++;
@@ -805,11 +802,11 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
break;
case GLX_TRANSPARENT_TYPE_EXT:
parselist++;
- trans_type = *parselist++;
+ parselist++;
break;
case GLX_TRANSPARENT_INDEX_VALUE_EXT:
parselist++;
- trans_value = *parselist++;
+ parselist++;
break;
case GLX_TRANSPARENT_RED_VALUE_EXT:
case GLX_TRANSPARENT_GREEN_VALUE_EXT: