[Piglit] [PATCH] fbo: fixup compiler-warnings in quirk-test
Erik Faye-Lund
erik.faye-lund at collabora.com
Wed Nov 21 12:41:49 UTC 2018
I'm not quite sure why I didn't catch this earlier, but the code
discards constness from some arrays, which leads to warnings.
Let's add the constness to the function-signature, and the warnings
go away.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---
tests/fbo/fbo-blending-format-quirks.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/fbo/fbo-blending-format-quirks.c b/tests/fbo/fbo-blending-format-quirks.c
index 1b71b3252..478890141 100644
--- a/tests/fbo/fbo-blending-format-quirks.c
+++ b/tests/fbo/fbo-blending-format-quirks.c
@@ -42,8 +42,10 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
PIGLIT_GL_TEST_CONFIG_END
-static enum piglit_result test_formats(const char *name, GLenum formats[2],
- float expect[2][4], GLenum factors[2])
+static enum piglit_result test_formats(const char *name,
+ const GLenum formats[2],
+ const float expect[2][4],
+ const GLenum factors[2])
{
GLboolean pass = GL_TRUE;
GLuint tex[2], fb;
--
2.19.1
More information about the Piglit
mailing list