[Piglit] [PATCH] arb_direct_state_access: Ignore scanf return value.
Vinson Lee
vlee at freedesktop.org
Mon Jan 19 13:44:11 PST 2015
Silence unchecked return value from library defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_direct_state_access/getcompressedtextureimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_direct_state_access/getcompressedtextureimage.c b/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
index 9546af5..7648cb3 100644
--- a/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
+++ b/tests/spec/arb_direct_state_access/getcompressedtextureimage.c
@@ -83,7 +83,7 @@ show_image(GLubyte *data, int num_layers, const char *title)
/* Pause. */
printf("Enter any char to continue.\n>>>>>>");
- scanf("%s", junk);
+ (void) scanf("%s", junk);
printf("\n");
glDeleteTextures(1, &name);
--
2.2.1
More information about the Piglit
mailing list