summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-04-05 21:36:03 +0000
committerBrian Paul <[email protected]>2000-04-05 21:36:03 +0000
commit9d0bc1d63347755fa708c1da9d4359108f226f3c (patch)
treeb39c0f27328292bfb60d25e697b59ae54057dcc1
parent8fbd189d8157fe498e91be86f53330a5a11b79db (diff)
fixed compiler warnigns
-rw-r--r--progs/demos/gears.c4
-rw-r--r--progs/demos/geartrain.c12
2 files changed, 3 insertions, 13 deletions
diff --git a/progs/demos/gears.c b/progs/demos/gears.c
index 38cd2f8a7b5..df9bd56a37a 100644
--- a/progs/demos/gears.c
+++ b/progs/demos/gears.c
@@ -1,4 +1,4 @@
-/* $Id: gears.c,v 1.4 2000/03/29 23:57:20 brianp Exp $ */
+/* $Id: gears.c,v 1.5 2000/04/05 21:36:03 brianp Exp $ */
/*
* 3-D gear wheels. This program is in the public domain.
@@ -167,8 +167,6 @@ static GLfloat angle = 0.0;
static void
draw(void)
{
- GLboolean bRet = GL_TRUE;
-
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glPushMatrix();
diff --git a/progs/demos/geartrain.c b/progs/demos/geartrain.c
index f9a85e35838..d973583d704 100644
--- a/progs/demos/geartrain.c
+++ b/progs/demos/geartrain.c
@@ -1,4 +1,4 @@
-/* $Id: geartrain.c,v 1.4 2000/04/04 15:20:17 brianp Exp $ */
+/* $Id: geartrain.c,v 1.5 2000/04/05 21:36:03 brianp Exp $ */
/*
* GearTrain Simulator * Version: 1.00
@@ -278,10 +278,6 @@ static void
axle (GLint j, GLfloat radius, GLfloat length)
{
GLfloat angle, rad, incr = 10.0 * M_PI / 180.0;
- GLint indexes[3] =
- {
- 0, 0, 0
- };
/* draw main cylinder */
glBegin (GL_QUADS);
@@ -334,11 +330,7 @@ gear (GLint j, char type[], GLfloat radius, GLfloat width,
GLfloat angle, da;
GLfloat u, v, len, fraction = 0.5;
GLfloat n = 1.0;
- GLint indexes[3] =
- {
- 0, 0, 0
- };
-
+
r1 = radius - tooth_depth;
r2 = radius;