fbo: fixup compiler-warnings in quirk-test

Submitted by Erik Faye-Lund on Nov. 21, 2018, 12:41 p.m.

Details

Message ID 20181121124149.19872-1-erik.faye-lund@collabora.com
State New
Headers show
Series "fbo: fixup compiler-warnings in quirk-test" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Erik Faye-Lund Nov. 21, 2018, 12:41 p.m.
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@collabora.com>
---
 tests/fbo/fbo-blending-format-quirks.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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;