diff options
Diffstat (limited to 'xts5/Xlib9')
-rw-r--r-- | xts5/Xlib9/XClearArea.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XClearWindow.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XCopyArea/XCopyArea.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XCopyPlane/XCopyPlane.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawArc/XDrawArc.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawArcs/XDrawArcs.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawLine/XDrawLine.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawLines/XDrawLines.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawRectangle/XDrawRectangle.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawRectangles/XDrawRectangles.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XDrawSegments/XDrawSegments.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XGetFontProperty.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XGetImage.m | 6 | ||||
-rw-r--r-- | xts5/Xlib9/XGetSubImage.m | 6 | ||||
-rw-r--r-- | xts5/Xlib9/XQueryFont.m | 1 | ||||
-rw-r--r-- | xts5/Xlib9/XQueryTextExtents16.m | 2 | ||||
-rw-r--r-- | xts5/Xlib9/XTextExtents16.m | 1 |
17 files changed, 7 insertions, 28 deletions
diff --git a/xts5/Xlib9/XClearArea.m b/xts5/Xlib9/XClearArea.m index 56bf325b..1b4772a3 100644 --- a/xts5/Xlib9/XClearArea.m +++ b/xts5/Xlib9/XClearArea.m @@ -300,7 +300,6 @@ Set background pixmap to None. Call XClearArea. Check that the window is not changed. >>CODE -struct area area; XVisualInfo *vp; for (resetvinf(VI_WIN); nextvinf(&vp); ) { diff --git a/xts5/Xlib9/XClearWindow.m b/xts5/Xlib9/XClearWindow.m index 885a3d43..7e7b4760 100644 --- a/xts5/Xlib9/XClearWindow.m +++ b/xts5/Xlib9/XClearWindow.m @@ -222,7 +222,6 @@ Set background pixmap to None. Call XClearWindow. Check that the whole window is left alone. >>CODE -struct area area; XVisualInfo *vp; for (resetvinf(VI_WIN); nextvinf(&vp); ) { diff --git a/xts5/Xlib9/XCopyArea/XCopyArea.m b/xts5/Xlib9/XCopyArea/XCopyArea.m index fe10c8cd..2920ddda 100644 --- a/xts5/Xlib9/XCopyArea/XCopyArea.m +++ b/xts5/Xlib9/XCopyArea/XCopyArea.m @@ -188,7 +188,6 @@ For all pixmaps >>CODE Window w1, w2; XVisualInfo *vp; -Pixmap pm; struct area area; for (resetvinf(VI_PIX); nextvinf(&vp); ) { diff --git a/xts5/Xlib9/XCopyPlane/XCopyPlane.m b/xts5/Xlib9/XCopyPlane/XCopyPlane.m index dec7ffb4..bad148bf 100644 --- a/xts5/Xlib9/XCopyPlane/XCopyPlane.m +++ b/xts5/Xlib9/XCopyPlane/XCopyPlane.m @@ -285,7 +285,6 @@ verify that it is not copied. >>CODE Window w1, w2; XVisualInfo *vp; -Pixmap pm; struct area area; /* diff --git a/xts5/Xlib9/XDrawArc/XDrawArc.m b/xts5/Xlib9/XDrawArc/XDrawArc.m index f5c0d0cb..a9274f37 100644 --- a/xts5/Xlib9/XDrawArc/XDrawArc.m +++ b/xts5/Xlib9/XDrawArc/XDrawArc.m @@ -122,7 +122,7 @@ int ax1, ay1, ax2, ay2; { int negw = 0; int negh = 0; -int pass = 0, fail = 0; +int fail = 0; x = ax1; y = ay1; diff --git a/xts5/Xlib9/XDrawArcs/XDrawArcs.m b/xts5/Xlib9/XDrawArcs/XDrawArcs.m index 36245c34..5f5eed34 100644 --- a/xts5/Xlib9/XDrawArcs/XDrawArcs.m +++ b/xts5/Xlib9/XDrawArcs/XDrawArcs.m @@ -129,7 +129,7 @@ int ax1, ay1, ax2, ay2; XArc arc; int negw = 0; int negh = 0; -int pass = 0, fail = 0; +int fail = 0; arc.x = ax1; arc.y = ay1; diff --git a/xts5/Xlib9/XDrawLine/XDrawLine.m b/xts5/Xlib9/XDrawLine/XDrawLine.m index 4272f539..2ed09f39 100644 --- a/xts5/Xlib9/XDrawLine/XDrawLine.m +++ b/xts5/Xlib9/XDrawLine/XDrawLine.m @@ -118,7 +118,7 @@ static void drawline(ax1, ay1, ax2, ay2) int ax1, ay1, ax2, ay2; { -int pass = 0, fail = 0; +int fail = 0; x1 = ax1; y1 = ay1; x2 = ax2; y2 = ay2; diff --git a/xts5/Xlib9/XDrawLines/XDrawLines.m b/xts5/Xlib9/XDrawLines/XDrawLines.m index 5d0552e5..4ae31772 100644 --- a/xts5/Xlib9/XDrawLines/XDrawLines.m +++ b/xts5/Xlib9/XDrawLines/XDrawLines.m @@ -133,7 +133,7 @@ drawline(x1, y1, x2, y2) int x1, y1, x2, y2; { XPoint pnts[2]; -int pass = 0, fail = 0; +int fail = 0; pnts[0].x = x1; pnts[0].y = y1; diff --git a/xts5/Xlib9/XDrawRectangle/XDrawRectangle.m b/xts5/Xlib9/XDrawRectangle/XDrawRectangle.m index f7b39617..4d4f3ae5 100644 --- a/xts5/Xlib9/XDrawRectangle/XDrawRectangle.m +++ b/xts5/Xlib9/XDrawRectangle/XDrawRectangle.m @@ -122,7 +122,7 @@ static void drawline(ax1, ay1, ax2, ay2) int ax1, ay1, ax2, ay2; { -int pass = 0, fail = 0; +int fail = 0; int x2 = MAX(ax1,ax2), y2 = MAX(ay1,ay2); /* * Draw a rectangle that has the two given points as vertices. diff --git a/xts5/Xlib9/XDrawRectangles/XDrawRectangles.m b/xts5/Xlib9/XDrawRectangles/XDrawRectangles.m index 9906a578..269a349f 100644 --- a/xts5/Xlib9/XDrawRectangles/XDrawRectangles.m +++ b/xts5/Xlib9/XDrawRectangles/XDrawRectangles.m @@ -131,7 +131,7 @@ drawline(ax1, ay1, ax2, ay2) int ax1, ay1, ax2, ay2; { XRectangle rect; -int pass = 0, fail = 0; +int fail = 0; int x2 = MAX(ax1,ax2), y2 = MAX(ay1,ay2); /* * Draw a rectangle that has the two given points as vertices. diff --git a/xts5/Xlib9/XDrawSegments/XDrawSegments.m b/xts5/Xlib9/XDrawSegments/XDrawSegments.m index 2c9ecbee..48ab4439 100644 --- a/xts5/Xlib9/XDrawSegments/XDrawSegments.m +++ b/xts5/Xlib9/XDrawSegments/XDrawSegments.m @@ -123,7 +123,7 @@ drawline(ax1, ay1, ax2, ay2) int ax1, ay1, ax2, ay2; { XSegment segs[1]; -int pass = 0, fail = 0; +int fail = 0; segs[0].x1 = ax1; segs[0].y1 = ay1; segs[0].x2 = ax2; segs[0].y2 = ay2; diff --git a/xts5/Xlib9/XGetFontProperty.m b/xts5/Xlib9/XGetFontProperty.m index 60e07083..b5d3f59c 100644 --- a/xts5/Xlib9/XGetFontProperty.m +++ b/xts5/Xlib9/XGetFontProperty.m @@ -214,7 +214,6 @@ Verify that False is returned. >>CODE unsigned long val; Bool ret; -int i; extern XFontStruct xtfont0; /* Known good version */ font_struct = XLoadQueryFont(Dsp, "xtfont0"); diff --git a/xts5/Xlib9/XGetImage.m b/xts5/Xlib9/XGetImage.m index be6e981b..5a382ca8 100644 --- a/xts5/Xlib9/XGetImage.m +++ b/xts5/Xlib9/XGetImage.m @@ -592,8 +592,6 @@ Window w; XImage *im1, *im2; static struct area area1 = { -1, -1, 1, 1 }; -static struct area area2 = - { W_STDWIDTH, W_STDHEIGHT, 1, 1 }; for (resetvinf(VI_WIN); nextvinf(&vp); ) { im1 = im2 = (XImage *) 0; @@ -1018,15 +1016,11 @@ Verify that BadMatch error occurred. >>CODE BadMatch XVisualInfo *vp; Window w; -Window w2; -int wx, wy; /* coordinates of window */ static struct area area1 = { 0, 0, W_STDWIDTH, W_STDHEIGHT }; static struct area area2 = { 0, 0, W_STDWIDTH, W_STDHEIGHT }; XImage *image; -unsigned int tmpui; /* uninteresting XGetGeometry return values */ -Window tmpw; /* uninteresting XGetGeometry return values */ resetvinf(VI_WIN); nextvinf(&vp); /* use first one we come to */ diff --git a/xts5/Xlib9/XGetSubImage.m b/xts5/Xlib9/XGetSubImage.m index e3b90c00..d50c392e 100644 --- a/xts5/Xlib9/XGetSubImage.m +++ b/xts5/Xlib9/XGetSubImage.m @@ -774,8 +774,6 @@ XImage *image; XImage *zimage; static struct area area1 = { -1, -1, 1, 1 }; -static struct area area2 = - { W_STDWIDTH, W_STDHEIGHT, 1, 1 }; static struct area aread = { 1, 1, 0, 0 }; @@ -1212,15 +1210,11 @@ Verify that BadMatch error occurred. >>CODE BadMatch XVisualInfo *vp; Window w; -Window w2; -int wx, wy; /* coordinates of window */ static struct area area1 = { 0, 0, W_STDWIDTH, W_STDHEIGHT }; static struct area area2 = { 0, 0, W_STDWIDTH, W_STDHEIGHT }; XImage *image; -unsigned int tmpui; /* uninteresting XGetGeometry return values */ -Window tmpw; resetvinf(VI_WIN); nextvinf(&vp); /* use first visual */ diff --git a/xts5/Xlib9/XQueryFont.m b/xts5/Xlib9/XQueryFont.m index 1ac1b385..d4598b95 100644 --- a/xts5/Xlib9/XQueryFont.m +++ b/xts5/Xlib9/XQueryFont.m @@ -205,7 +205,6 @@ Obtain a bad font ID. Call XQueryFont. Verify that null is returned. >>CODE -Font font; XFontStruct *fsp; font_ID = badfont(Dsp); diff --git a/xts5/Xlib9/XQueryTextExtents16.m b/xts5/Xlib9/XQueryTextExtents16.m index cc061f58..e41bef4f 100644 --- a/xts5/Xlib9/XQueryTextExtents16.m +++ b/xts5/Xlib9/XQueryTextExtents16.m @@ -156,7 +156,6 @@ For each VSW5 font extern struct fontinfo fontinfo[]; extern int nfontinfo; int i; -char buf[256]; int good_direction; int good_font_ascent; int good_font_descent; @@ -258,7 +257,6 @@ For each VSW5 font extern struct fontinfo fontinfo[]; extern int nfontinfo; int i; -char buf[256]; int good_direction; int good_font_ascent; int good_font_descent; diff --git a/xts5/Xlib9/XTextExtents16.m b/xts5/Xlib9/XTextExtents16.m index 3c6a13ef..2580e68f 100644 --- a/xts5/Xlib9/XTextExtents16.m +++ b/xts5/Xlib9/XTextExtents16.m @@ -136,7 +136,6 @@ For each 16 bit VSW5 font extern struct fontinfo fontinfo[]; extern int nfontinfo; int i; -char buf[256]; int direction; int font_ascent; int font_descent; |