summaryrefslogtreecommitdiff
path: root/xts5/Xlib6
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2010-04-18 17:34:27 -0700
committerAaron Plattner <aplattner@nvidia.com>2010-04-20 09:55:55 -0700
commit4c32692b4acfb02d8ef9ebbe0b999a2a59bc2fd7 (patch)
treea614f41cc9a58538a8dccb6d484f823f6ef90452 /xts5/Xlib6
parentc4049fde7c2074085a6079b780cb48bdc3a58bc4 (diff)
xts5: Fix "unused variable" warnings.
There are still two left: XDrawRectangle/XDrawRectangle.c:4211: warning: unused variable ‘jssav’ XDrawRectangles/XDrawRectangles.c:4292: warning: unused variable ‘jssav’ These are a little harder to fix because the declaration is generated but jssav is only used in some of the tests. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xts5/Xlib6')
-rw-r--r--xts5/Xlib6/XCreateFontCursor.m1
-rw-r--r--xts5/Xlib6/XCreateGlyphCursor.m2
-rw-r--r--xts5/Xlib6/XCreatePixmap.m2
-rw-r--r--xts5/Xlib6/XCreatePixmapCursor.m4
-rw-r--r--xts5/Xlib6/XFreePixmap.m3
5 files changed, 2 insertions, 10 deletions
diff --git a/xts5/Xlib6/XCreateFontCursor.m b/xts5/Xlib6/XCreateFontCursor.m
index 0dc584bd..642874cb 100644
--- a/xts5/Xlib6/XCreateFontCursor.m
+++ b/xts5/Xlib6/XCreateFontCursor.m
@@ -158,7 +158,6 @@ Get TET variable XT_FONTCURSOR_BAD.
Call XCreateFontCursor with shape of this value.
Verify that a BadValue error occurs.
>>CODE BadValue
-Cursor qstat;
/* Get TET variable XT_FONTCURSOR_BAD */
shape = config.fontcursor_bad;
diff --git a/xts5/Xlib6/XCreateGlyphCursor.m b/xts5/Xlib6/XCreateGlyphCursor.m
index 29350924..200acac0 100644
--- a/xts5/Xlib6/XCreateGlyphCursor.m
+++ b/xts5/Xlib6/XCreateGlyphCursor.m
@@ -620,7 +620,6 @@ Call XCreateGlyphCursor with a source_char which is
an undefined glyph in source_font.
Verify that a BadValue error occurs.
>>CODE BadValue
-Cursor qstat;
/* Load xtfont0 using XLoadFont. */
source_font = XLoadFont(display, xtfont0);
@@ -653,7 +652,6 @@ Call XCreateGlyphCursor with a mask_char which is
an undefined glyph in mask_font.
Verify that a BadValue error occurs.
>>CODE BadValue
-Cursor qstat;
/* Load xtfont0 using XLoadFont. */
source_font = XLoadFont(display, xtfont0);
diff --git a/xts5/Xlib6/XCreatePixmap.m b/xts5/Xlib6/XCreatePixmap.m
index b866f106..84c725bb 100644
--- a/xts5/Xlib6/XCreatePixmap.m
+++ b/xts5/Xlib6/XCreatePixmap.m
@@ -124,7 +124,7 @@ XVisualInfo *vp;
Status gstat;
Window root_ret;
int x_ret, y_ret;
-unsigned int w_ret, h_ret, bw_ret, bh_ret, dep_ret;
+unsigned int w_ret, h_ret, bw_ret, dep_ret;
Pixmap pmap;
diff --git a/xts5/Xlib6/XCreatePixmapCursor.m b/xts5/Xlib6/XCreatePixmapCursor.m
index 5f8946ec..b33e122c 100644
--- a/xts5/Xlib6/XCreatePixmapCursor.m
+++ b/xts5/Xlib6/XCreatePixmapCursor.m
@@ -414,7 +414,6 @@ Call XCreatePixmapCursor with source pixmap.
Verify that BadMatch error occurred.
>>CODE BadMatch
XVisualInfo *vp;
-Cursor qstat;
depth1.depth = 1;
/* If only one depth supported report UNSUPPORTED. */
@@ -460,7 +459,6 @@ Call XCreatePixmapCursor with mask pixmap.
Verify that BadMatch error occurred.
>>CODE BadMatch
XVisualInfo *vp;
-Cursor qstat;
depth1.depth = 1;
/* If only one depth supported report UNSUPPORTED. */
@@ -507,7 +505,6 @@ Create mask pixmap of size 2x2.
Call XCreatePixmapCursor with mask pixmap.
Verify that BadMatch error occurred.
>>CODE BadMatch
-Cursor qstat;
depth1.depth = 1;
/* Create source pixmap of size 1x1. */
@@ -538,7 +535,6 @@ Create mask pixmap.
Call XCreatePixmapCursor with hotspot outside the source pixmap.
Verify that BadMatch error occurred.
>>CODE BadMatch
-Cursor qstat;
depth1.depth = 1;
/* Create source pixmap. */
diff --git a/xts5/Xlib6/XFreePixmap.m b/xts5/Xlib6/XFreePixmap.m
index e1e0aaf7..f961d7a1 100644
--- a/xts5/Xlib6/XFreePixmap.m
+++ b/xts5/Xlib6/XFreePixmap.m
@@ -114,7 +114,6 @@ For all supported depths of pixmap:
Plot (0,0) in the pixmap.
Verify that a BadDrawable error occurred.
>>CODE
-XGCValues gcv;
XVisualInfo *vp;
GC gc;
@@ -150,7 +149,7 @@ Verify that the tiled pattern matches the pixmap.
Window win;
XVisualInfo *vp;
XGCValues gcv;
-GC gc, gc2;
+GC gc;
for(resetvinf(VI_WIN); nextvinf(&vp);) {
win = makewin(display, vp);