From db6aa58267cad3f502f03ab80b9deb6b75320a91 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Nov 2000 17:23:02 +0000 Subject: patched to silence compiler warnings (Martin Lindhe) --- src/glu/mesa/nurbscrv.c | 4 ++-- src/glu/mesa/nurbsutl.c | 4 ++-- src/glu/mesa/polytest.c | 4 ++-- src/glut/glx/glut_cursor.c | 2 +- src/glut/glx/glut_dstr.c | 4 ++-- src/glut/glx/glut_gamemode.c | 4 ++-- src/glut/glx/glut_input.c | 2 +- src/glut/glx/glut_menu.c | 6 +++--- src/mesa/drivers/x11/fakeglx.c | 4 ++-- src/mesa/drivers/x11/xfonts.c | 4 ++-- 10 files changed, 19 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/glu/mesa/nurbscrv.c b/src/glu/mesa/nurbscrv.c index a9ff4f2867..5bde023275 100644 --- a/src/glu/mesa/nurbscrv.c +++ b/src/glu/mesa/nurbscrv.c @@ -1,4 +1,4 @@ -/* $Id: nurbscrv.c,v 1.2 2000/07/11 14:11:04 brianp Exp $ */ +/* $Id: nurbscrv.c,v 1.3 2000/11/10 17:23:04 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -359,7 +359,7 @@ do_nurbs_curve(GLUnurbsObj * nobj) GLint n_ctrl; GLfloat *new_geom_ctrl, *new_color_ctrl, *new_normal_ctrl, *new_texture_ctrl; - GLfloat *geom_ctrl, *color_ctrl, *normal_ctrl, *texture_ctrl; + GLfloat *geom_ctrl = 0, *color_ctrl = 0, *normal_ctrl = 0, *texture_ctrl = 0; GLint *factors; GLint i, j; GLint geom_dim, color_dim = 0, normal_dim = 0, texture_dim = 0; diff --git a/src/glu/mesa/nurbsutl.c b/src/glu/mesa/nurbsutl.c index 516984b314..027f245827 100644 --- a/src/glu/mesa/nurbsutl.c +++ b/src/glu/mesa/nurbsutl.c @@ -1,4 +1,4 @@ -/* $Id: nurbsutl.c,v 1.3 2000/07/11 20:39:00 brianp Exp $ */ +/* $Id: nurbsutl.c,v 1.4 2000/11/10 17:23:04 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -130,7 +130,7 @@ set_new_t_min_t_max(knot_str_type * geom_knot, knot_str_type * color_knot, knot_str_type * normal_knot, knot_str_type * texture_knot, GLfloat maximal_min_knot, GLfloat minimal_max_knot) { - GLuint t_min, t_max, cnt; + GLuint t_min = 0, t_max = 0, cnt = 0; if (minimal_max_knot - maximal_min_knot < EPSILON) { /* knot common range empty */ diff --git a/src/glu/mesa/polytest.c b/src/glu/mesa/polytest.c index 0995cb032f..ccf9cdd4b4 100644 --- a/src/glu/mesa/polytest.c +++ b/src/glu/mesa/polytest.c @@ -1,4 +1,4 @@ -/* $Id: polytest.c,v 1.3 2000/07/11 14:11:04 brianp Exp $ */ +/* $Id: polytest.c,v 1.4 2000/11/10 17:23:04 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -786,7 +786,7 @@ cut_out_hole(GLUtriangulatorObj * tobj, tess_vertex *v1, *v2, *tmp_vertex; GLuint vertex1_cnt, vertex2_cnt, tmp_vertex_cnt; GLuint i, j, k; - GLenum test; + GLenum test = 0; /* find an edge connecting contour and hole not intersecting any other */ /* edge belonging to either the contour or any of the other holes */ diff --git a/src/glut/glx/glut_cursor.c b/src/glut/glx/glut_cursor.c index 28e95568d6..c0a5a5b7af 100644 --- a/src/glut/glx/glut_cursor.c +++ b/src/glut/glx/glut_cursor.c @@ -118,7 +118,7 @@ void __glutSetCursor(GLUTwindow *window) { int cursor = window->cursor; - Cursor xcursor; + Cursor xcursor = 0; if (cursor >= 0 && cursor < sizeof(cursorTable) / sizeof(cursorTable[0])) { diff --git a/src/glut/glx/glut_dstr.c b/src/glut/glx/glut_dstr.c index 74643b83be..4688444498 100644 --- a/src/glut/glx/glut_dstr.c +++ b/src/glut/glx/glut_dstr.c @@ -630,7 +630,7 @@ findMatch(FrameBufferMode * fbmodes, int nfbmodes, { FrameBufferMode *found; int *bestScore, *thisScore; - int i, j, numok, result, worse, better; + int i, j, numok, result = 0, worse, better; found = NULL; numok = 1; /* "num" capability is indexed from 1, @@ -760,7 +760,7 @@ parseCriteria(char *word, Criterion * criterion, int *mask, Bool * allowDoubleAsSingle) { char *cstr, *vstr, *response; - int comparator, value; + int comparator, value = 0; int rgb, rgba, acc, acca, count, i; cstr = strpbrk(word, "=>max_byte1 - fs->min_byte1 + 1; -- cgit v1.2.3