[Piglit] [PATCH] shader_runner: Fix argument for received length.

Vinson Lee vlee at freedesktop.org
Tue Jun 14 23:15:19 UTC 2016


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;
 		}
 
-- 
2.7.4



More information about the Piglit mailing list