From 7ab0cac68b72722f702e670b05c761524ff4ef61 Mon Sep 17 00:00:00 2001 From: Jake Turner Date: Wed, 17 Feb 2021 05:24:52 +0000 Subject: [PATCH] Fix C++11 error assign string literal to char* error: ISO C++11 does not allow conversion from string literal to 'GLchar *' (aka 'char *') [-Werror,-Wwritable-strings] --- util/test/demos/gl/gl_queries_in_use.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/test/demos/gl/gl_queries_in_use.cpp b/util/test/demos/gl/gl_queries_in_use.cpp index fa58cabad..8a3d3a926 100644 --- a/util/test/demos/gl/gl_queries_in_use.cpp +++ b/util/test/demos/gl/gl_queries_in_use.cpp @@ -65,7 +65,7 @@ RD_TEST(GL_Queries_In_Use, OpenGLGraphicsTest) glAttachShader(program, vs); glAttachShader(program, fs); - GLchar *posOnly = "gl_Position"; + const GLchar *posOnly = "gl_Position"; glTransformFeedbackVaryings(program, 1, &posOnly, GL_INTERLEAVED_ATTRIBS); glLinkProgram(program);