[Piglit] [PATCH] shader_runner: Fix argument for received length.
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Wed Jun 15 04:57:27 UTC 2016
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
On 15/06/16 01:15, Vinson Lee wrote:
> shader_runner.c:2255:25: warning: variable 'got' is uninitialized when used here [-Wuninitialized]
> expected, expected, got, got);
> ^~~
> shader_runner.c:2234:12: note: initialize the variable 'got' to silence this warning
> GLint got;
> ^
> = 0
>
> Fixes: b3fc3303d9379 ("shader_runner: Add ARB_program_interface_query support")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
> tests/shaders/shader_runner.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
> index 564ae6375c2d..2f90fee7b8ee 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -2252,7 +2252,7 @@ active_program_interface(const char *line)
> "glGetProgramResourceName(%s, %s): "
> "expected %d (0x%04x), got %d (0x%04x)\n",
> name, prop_string,
> - expected, expected, got, got);
> + expected, expected, name_len, name_len);
> pass = false;
> }
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160615/8df2695f/attachment.sig>
More information about the Piglit
mailing list