[Piglit] [PATCH] fbo-generatemipmap-1d: Remove unused variables.

Brian Paul brian.e.paul at gmail.com
Mon Jun 16 07:07:55 PDT 2014


Reviewed-by: Brian Paul <brianp at vmware.com>


On Fri, Jun 13, 2014 at 11:03 PM, Vinson Lee <vlee at freedesktop.org> wrote:

> Fix clang unused-const-variable warnings.
>
> tests/fbo/fbo-generatemipmap-1d.c:44:20: warning: unused variable 'red'
> [-Wunused-const-variable]
> static const float red[] =   {1, 0, 0, 0};
>                    ^
> tests/fbo/fbo-generatemipmap-1d.c:45:20: warning: unused variable 'green'
> [-Wunused-const-variable]
> static const float green[] = {0, 1, 0, 0};
>                    ^
> tests/fbo/fbo-generatemipmap-1d.c:46:20: warning: unused variable 'blue'
> [-Wunused-const-variable]
> static const float blue[] =  {0, 0, 1, 0};
>                    ^
> tests/fbo/fbo-generatemipmap-1d.c:47:20: warning: unused variable 'white'
> [-Wunused-const-variable]
> static const float white[] = {1, 1, 1, 1};
>                    ^
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/fbo/fbo-generatemipmap-1d.c | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/tests/fbo/fbo-generatemipmap-1d.c
> b/tests/fbo/fbo-generatemipmap-1d.c
> index f996ffd..ef099d9 100644
> --- a/tests/fbo/fbo-generatemipmap-1d.c
> +++ b/tests/fbo/fbo-generatemipmap-1d.c
> @@ -41,11 +41,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
>
>  PIGLIT_GL_TEST_CONFIG_END
>
> -static const float red[] =   {1, 0, 0, 0};
> -static const float green[] = {0, 1, 0, 0};
> -static const float blue[] =  {0, 0, 1, 0};
> -static const float white[] = {1, 1, 1, 1};
> -
>  static const char *fs_1d =
>     "uniform sampler1D tex; \n"
>     "void main() \n"
> --
> 1.9.3
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20140616/e45ca7ff/attachment.html>


More information about the Piglit mailing list