[Piglit] [PATCH] arb_direct_state_access: Ignore scanf return value.
Brian Paul
brianp at vmware.com
Mon Mar 23 07:37:02 PDT 2015
On 03/22/2015 12:57 AM, Vinson Lee wrote:
> 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);
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list