[PATCH 1/8] rendercheck: Fix compiler dead code warning.

Eric Anholt eric at anholt.net
Mon Apr 21 11:56:15 PDT 2014


This was apparently copy and pasted from the 1x1 repeat code above.
---
 tests.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests.c b/tests.c
index f722bc6..e2ae645 100644
--- a/tests.c
+++ b/tests.c
@@ -390,14 +390,12 @@ do_tests(Display *dpy, picture_info *win)
 		errx(1, "malloc error");
 
 	for (i = 0; i < num_colors * nformats; i++) {
-		XRenderPictureAttributes pa;
 		color4d *c = &colors[i / nformats];
 
 		/* The standard PictFormat numbers go from 0 to 4 */
 		pictures_10x10[i].format = format_list[i % nformats];
 		pictures_10x10[i].d = XCreatePixmap(dpy, RootWindow(dpy, 0), 10,
 		    10, pictures_10x10[i].format->depth);
-		pa.repeat = TRUE;
 		pictures_10x10[i].pict = XRenderCreatePicture(dpy,
 		    pictures_10x10[i].d, pictures_10x10[i].format, 0, NULL);
 
-- 
1.9.2



More information about the xorg-devel mailing list