[Piglit] [PATCH] fbo-depth: Fix uninitialized variable warning.
Vinson Lee
vlee at freedesktop.org
Tue Dec 24 14:55:21 PST 2013
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 <vlee at 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
More information about the Piglit
mailing list