[Piglit] [PATCH] glsl-1.50-geometry-primitive-id-restart: Add NORETURN attribute to print_usage_and_exit.
Vinson Lee
vlee at freedesktop.org
Sun Mar 22 00:17:11 PDT 2015
Fix uninitialized scalar variable defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
index 1e748c3..362b48c 100644
--- a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
+++ b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c
@@ -132,7 +132,7 @@ struct prim_type_info
};
-static void
+NORETURN static void
print_usage_and_exit(const char *prog_name)
{
int i;
--
2.3.3
More information about the Piglit
mailing list