summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-10-21 12:45:53 +0000
committerBrian Paul <[email protected]>1999-10-21 12:45:53 +0000
commit5393bb3830c687fe2a3cfc558d2567ad582b4b1c (patch)
treee5fb8ca952d3a1c5f60b3cd7ba4d706f6ec116ad /src/mesa/main
parentfc811e2bfdb77365c23a8679201473bb9ec9f870 (diff)
silenced some uninitialized var warnings
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/points.c45
1 files changed, 38 insertions, 7 deletions
diff --git a/src/mesa/main/points.c b/src/mesa/main/points.c
index 43c4b88b5ba..3ecbd105065 100644
--- a/src/mesa/main/points.c
+++ b/src/mesa/main/points.c
@@ -1,4 +1,4 @@
-/* $Id: points.c,v 1.3 1999/10/08 09:27:11 keithw Exp $ */
+/* $Id: points.c,v 1.4 1999/10/21 12:45:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -27,8 +27,6 @@
-
-
#ifdef PC_HEADER
#include "all.h"
#else
@@ -133,7 +131,7 @@ void gl_PointParameterfvEXT( GLcontext *ctx, GLenum pname,
/*
* CI points with size == 1.0
*/
-void size1_ci_points( GLcontext *ctx, GLuint first, GLuint last )
+static void size1_ci_points( GLcontext *ctx, GLuint first, GLuint last )
{
struct vertex_buffer *VB = ctx->VB;
struct pixel_buffer *PB = ctx->PB;
@@ -366,11 +364,12 @@ static void textured_rgba_points( GLcontext *ctx, GLuint first, GLuint last )
t = 0.0;
u = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in textured_rgba_points()");
}
-
-
-
/* don't think this is needed
PB_SET_COLOR( red, green, blue, alpha );
*/
@@ -457,6 +456,10 @@ static void multitextured_rgba_points( GLcontext *ctx, GLuint first, GLuint last
t = 0.0;
u = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in multitextured_rgba_points()");
}
switch (VB->TexCoordPtr[1]->size) {
@@ -480,6 +483,10 @@ static void multitextured_rgba_points( GLcontext *ctx, GLuint first, GLuint last
t1 = 0.0;
u1 = 0.0;
break;
+ default:
+ /* should never get here */
+ s1 = t1 = u1 = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in multitextured_rgba_points()");
}
for (iy=y0;iy<=y1;iy++) {
@@ -556,6 +563,10 @@ static void antialiased_rgba_points( GLcontext *ctx,
t = 0.0;
u = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in antialiased_rgba_points()");
}
if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) {
@@ -585,6 +596,10 @@ static void antialiased_rgba_points( GLcontext *ctx,
t1 = 0.0;
u1 = 0.0;
break;
+ default:
+ /* should never get here */
+ s1 = t1 = u1 = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in antialiased_rgba_points()");
}
}
@@ -976,6 +991,10 @@ static void dist_atten_textured_rgba_points( GLcontext *ctx, GLuint first,
t = 0.0;
u = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in dist_atten_textured_rgba_points()");
}
if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) {
@@ -1005,6 +1024,10 @@ static void dist_atten_textured_rgba_points( GLcontext *ctx, GLuint first,
t1 = 0.0;
u1 = 0.0;
break;
+ default:
+ /* should never get here */
+ s1 = t1 = u1 = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in dist_atten_textured_rgba_points()");
}
}
@@ -1103,6 +1126,10 @@ static void dist_atten_antialiased_rgba_points( GLcontext *ctx,
t = 0.0;
u = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in dist_atten_antialiased_rgba_points()");
}
if (ctx->Texture.ReallyEnabled >= TEXTURE1_1D) {
@@ -1132,6 +1159,10 @@ static void dist_atten_antialiased_rgba_points( GLcontext *ctx,
t1 = 0.0;
u1 = 0.0;
break;
+ default:
+ /* should never get here */
+ s = t = u = 0.0;
+ gl_problem(ctx, "unexpected texcoord size in dist_atten_antialiased_rgba_points()");
}
}