Fix GCC maybe-uninitialized warning. fbo-depthstencil.c: In function 'piglit_display': fbo-depthstencil.c:483:2: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized] return res; ^
Signed-off-by: Vinson Lee <v...@freedesktop.org> --- tests/fbo/fbo-depthstencil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fbo/fbo-depthstencil.c b/tests/fbo/fbo-depthstencil.c index ae91186..d67cee7 100644 --- a/tests/fbo/fbo-depthstencil.c +++ b/tests/fbo/fbo-depthstencil.c @@ -468,6 +468,7 @@ enum piglit_result piglit_display(void) break; default: assert(0); + res = PIGLIT_SKIP; } /* Cleanup. */ -- 1.8.5.2 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit