[Piglit] [PATCH] gl-4.5/compare-framebuffer-parameter-with-get: Fix return-type warning.

Antía Puentes apuentes at igalia.com
Tue Feb 14 14:15:02 UTC 2017


Reviewed-by: Antia Puentes <apuentes at igalia.com>

On mar, 2017-02-14 at 00:58 +0000, Vinson Lee wrote:
> compare-framebuffer-parameter-with-get.c: In function
> 'get_framebuffer_name':
> compare-framebuffer-parameter-with-get.c:208:1: warning: control
> reaches end of non-void function [-Wreturn-type]
>  }
>  ^
> 
> Fixes: d60f1fb839bc ("gl-4.5/compare-framebuffer-parameter-with-get:
> add test")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/spec/gl-4.5/compare-framebuffer-parameter-with-
> get.c b/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
> index 5573d9838c1b..b9eab53a6b51 100644
> --- a/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
> +++ b/tests/spec/gl-4.5/compare-framebuffer-parameter-with-get.c
> @@ -204,6 +204,7 @@ get_framebuffer_name(int index)
>  		return "complete framebuffer";
>  	default:
>  		assert(!"unknown framebuffer");
> +		return "unknown framebuffer";
>  	}
>  }
>  


More information about the Piglit mailing list