Mesa (mesa_7_6_branch): progs/tests: Silence compiler warnings in vpeval.c.
Vinson Lee
vlee at kemper.freedesktop.org
Sat Dec 12 09:35:21 UTC 2009
Module: Mesa
Branch: mesa_7_6_branch
Commit: d5be33477e4a5cb73a5ccc24c2ad6518adddeb40
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d5be33477e4a5cb73a5ccc24c2ad6518adddeb40
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Dec 12 01:34:33 2009 -0800
progs/tests: Silence compiler warnings in vpeval.c.
---
progs/tests/vpeval.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/progs/tests/vpeval.c b/progs/tests/vpeval.c
index f07737f..3e8a732 100644
--- a/progs/tests/vpeval.c
+++ b/progs/tests/vpeval.c
@@ -94,16 +94,16 @@ GLfloat colorPoints[4][4][4] =
};
-void
+static void
initlights(void)
{
+#if 0 /* no lighting for now */
GLfloat ambient[] = {0.2, 0.2, 0.2, 1.0};
GLfloat position[] = {0.0, 0.0, 2.0, 1.0};
GLfloat mat_diffuse[] = {0.6, 0.6, 0.6, 1.0};
GLfloat mat_specular[] = {1.0, 1.0, 1.0, 1.0};
GLfloat mat_shininess[] = {50.0};
-#if 0 /* no lighting for now */
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
@@ -116,7 +116,7 @@ initlights(void)
#endif
}
-void
+static void
display(void)
{
glClearColor(.3, .3, .3, 0);
@@ -130,7 +130,7 @@ display(void)
glFlush();
}
-void
+static void
myinit(int argc, char *argv[])
{
glClearColor(0.0, 0.0, 0.0, 1.0);
@@ -186,7 +186,7 @@ myinit(int argc, char *argv[])
}
}
-void
+static void
myReshape(int w, int h)
{
glViewport(0, 0, w, h);
More information about the mesa-commit
mailing list