[Piglit] [PATCH] fbo-stencil: Silence uninitialized warning.

Vinson Lee vlee at freedesktop.org
Fri Jan 10 18:21:50 PST 2014


Fix GCC maybe-uninitialized warning.

fbo-stencil.c:332:2: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return res;
  ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/fbo/fbo-stencil.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/fbo/fbo-stencil.c b/tests/fbo/fbo-stencil.c
index ccd46b2..a743173 100644
--- a/tests/fbo/fbo-stencil.c
+++ b/tests/fbo/fbo-stencil.c
@@ -319,6 +319,7 @@ enum piglit_result piglit_display(void)
 		break;
 	default:
 		assert(0);
+		res = PIGLIT_SKIP;
 	}
 
 	/* Cleanup. */
-- 
1.8.4.2



More information about the Piglit mailing list