summaryrefslogtreecommitdiffstats
path: root/progs/trivial/tri-z.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-14 18:11:57 -0800
committerVinson Lee <[email protected]>2009-12-14 18:11:57 -0800
commit0a8d508854c6dd354e611b046e375b8633059a40 (patch)
treed5b1c44d50f7e49eec30ad766e6dd7618cbf6bf3 /progs/trivial/tri-z.c
parent6e5fe39f5051bb758b98ed4b9a2b9d550b588edf (diff)
progs/trivial: Silence compiler warnings.
Diffstat (limited to 'progs/trivial/tri-z.c')
-rw-r--r--progs/trivial/tri-z.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/trivial/tri-z.c b/progs/trivial/tri-z.c
index 014aaa071a5..092249dd765 100644
--- a/progs/trivial/tri-z.c
+++ b/progs/trivial/tri-z.c
@@ -101,7 +101,7 @@ static void drawRightTriangle(void)
glEnd();
}
-void display(void)
+static void display(void)
{
printf("GL_CLEAR_DEPTH = %.2f, GL_DEPTH_FUNC = %s, DepthRange(%.1f, %.1f)\n",
clearVal, funcs[curFunc].str, minZ, maxZ);
@@ -124,7 +124,7 @@ void display(void)
glFlush();
}
-void reshape(int w, int h)
+static void reshape(int w, int h)
{
glViewport(0, 0, (GLsizei) w, (GLsizei) h);
glMatrixMode(GL_PROJECTION);
@@ -136,7 +136,7 @@ void reshape(int w, int h)
}
/* ARGSUSED1 */
-void keyboard(unsigned char key, int x, int y)
+static void keyboard(unsigned char key, int x, int y)
{
switch (key) {
case 'n':