Fix GCC maybe-uninitialized warning. fbo-depth.c: In function 'piglit_display': fbo-depth.c:314: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-depth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fbo/fbo-depth.c b/tests/fbo/fbo-depth.c index 42df741..532c6db 100644 --- a/tests/fbo/fbo-depth.c +++ b/tests/fbo/fbo-depth.c @@ -301,6 +301,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