summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2019-11-24 22:55:07 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2019-12-31 06:28:35 +0100
commit95c1a57cfdd1ef2852c828cba4659a72575c5c5d (patch)
treee0a823098a10b191c910f0ece0f8756761d690c7
parentcbfb39b96b4e01f54bc53ce764be219f46c193ab (diff)
fix -Wunused-const-variable compile warnings
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-by: Eric Engestrom <eric.engestrom@intel.com>
-rw-r--r--src/glsl/geom-sprites.c4
-rw-r--r--src/glsl/geom-wide-lines.c4
-rw-r--r--src/perf/readpixels.c1
-rw-r--r--src/perf/vbo.c1
-rw-r--r--src/tests/blendxor.c6
-rw-r--r--src/tests/bug_3050.c2
-rw-r--r--src/tests/rubberband.c4
7 files changed, 0 insertions, 22 deletions
diff --git a/src/glsl/geom-sprites.c b/src/glsl/geom-sprites.c
index 48a9b7a3..168d7567 100644
--- a/src/glsl/geom-sprites.c
+++ b/src/glsl/geom-sprites.c
@@ -25,10 +25,6 @@ static int uPointSize = -1, uInverseViewportSize = -1;
static const int NumPoints = 50;
static float Points[100][3];
-static const GLfloat Red[4] = {1, 0, 0, 1};
-static const GLfloat Green[4] = {0, 1, 0, 0};
-
-
static void
CheckError(int line)
{
diff --git a/src/glsl/geom-wide-lines.c b/src/glsl/geom-wide-lines.c
index 42bb8110..038f1fe9 100644
--- a/src/glsl/geom-wide-lines.c
+++ b/src/glsl/geom-wide-lines.c
@@ -27,10 +27,6 @@ static int uLineWidth = -1, uInverseViewportSize = -1;
static int NumPoints = 50;
-static const GLfloat Red[4] = {1, 0, 0, 1};
-static const GLfloat Green[4] = {0, 1, 0, 0};
-
-
static void
CheckError(int line)
{
diff --git a/src/perf/readpixels.c b/src/perf/readpixels.c
index ac7dc426..2107ad40 100644
--- a/src/perf/readpixels.c
+++ b/src/perf/readpixels.c
@@ -38,7 +38,6 @@ int WinWidth = 1000, WinHeight = 1000;
static GLuint VBO;
static const GLboolean DrawPoint = GL_TRUE;
-static const GLboolean BufferSubDataInHalves = GL_TRUE;
static const GLfloat Vertex0[2] = { 0.0, 0.0 };
diff --git a/src/perf/vbo.c b/src/perf/vbo.c
index b326c056..a6862562 100644
--- a/src/perf/vbo.c
+++ b/src/perf/vbo.c
@@ -44,7 +44,6 @@ static GLsizei SubSize = 0;
static GLubyte *VBOData = NULL; /* array[DATA_SIZE] */
static const GLboolean DrawPoint = GL_TRUE;
-static const GLboolean BufferSubDataInHalves = GL_TRUE;
static const GLfloat Vertex0[2] = { 0.0, 0.0 };
diff --git a/src/tests/blendxor.c b/src/tests/blendxor.c
index af81a17b..16bfea6f 100644
--- a/src/tests/blendxor.c
+++ b/src/tests/blendxor.c
@@ -29,12 +29,6 @@ static struct rect OldRect, NewRect;
static GLboolean ButtonDown = GL_FALSE;
static GLboolean LogicOp = 0*GL_TRUE;
-
-static const GLfloat red[4] = {1.0, 0.2, 0.2, 1.0};
-static const GLfloat green[4] = {0.2, 1.0, 0.2, 1.0};
-static const GLfloat blue[4] = {0.2, 0.2, 1.0, 1.0};
-
-
static void
PrintString(const char *s)
{
diff --git a/src/tests/bug_3050.c b/src/tests/bug_3050.c
index 51dd2754..00c6bbd9 100644
--- a/src/tests/bug_3050.c
+++ b/src/tests/bug_3050.c
@@ -44,8 +44,6 @@
static int Width = 400;
static int Height = 200;
-static const GLfloat Near = 5.0, Far = 25.0;
-
static void Display( void )
{
diff --git a/src/tests/rubberband.c b/src/tests/rubberband.c
index d1ddbf9c..9b58732c 100644
--- a/src/tests/rubberband.c
+++ b/src/tests/rubberband.c
@@ -30,10 +30,6 @@ static GLboolean LogicOp = GL_TRUE;
static GLboolean RedrawBackground = GL_TRUE;
-static const GLfloat red[4] = {1.0, 0.2, 0.2, 1.0};
-static const GLfloat green[4] = {0.2, 1.0, 0.2, 1.0};
-static const GLfloat blue[4] = {0.2, 0.2, 1.0, 1.0};
-
static int color = 0;