[Piglit] [PATCH] arb_gpu_shader_fp64: Silence Coverity uninitialized variable defects.
Vinson Lee
vlee at freedesktop.org
Mon Nov 16 23:17:29 PST 2015
Coverity does not the parse the shader and cannot determine all cases
are being handled.
Fixes Coverity "uninitialized scalar variable" defects.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_gpu_shader_fp64/execution/getuniformdv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/spec/arb_gpu_shader_fp64/execution/getuniformdv.c b/tests/spec/arb_gpu_shader_fp64/execution/getuniformdv.c
index 5f7d85e..80ec945 100644
--- a/tests/spec/arb_gpu_shader_fp64/execution/getuniformdv.c
+++ b/tests/spec/arb_gpu_shader_fp64/execution/getuniformdv.c
@@ -152,6 +152,10 @@ piglit_init(int argc, char **argv)
} else if (name[0] == 'b') {
expectedType = GL_BOOL;
expectedSize = 1;
+ } else {
+ assert(0);
+ expectedType = GL_NONE;
+ expectedSize = 0;
}
if (type != expectedType) {
--
2.6.3
More information about the Piglit
mailing list