minor changes to silence compiler warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Nov 2000 17:45:15 +0000 (17:45 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 10 Nov 2000 17:45:15 +0000 (17:45 +0000)
src/mesa/drivers/glide/fxdd.c
src/mesa/main/colortab.c
src/mesa/main/convolve.c
src/mesa/swrast/s_context.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_lines.c
src/mesa/swrast/s_points.c
src/mesa/swrast/swrast.h
src/mesa/swrast_setup/ss_context.c
src/mesa/swrast_setup/swrast_setup.h

index 10f635852a3d84fe68ac3444992e556f037c32ea..0305a2740bebd911f1e88d94c7eee60fbc905560 100644 (file)
@@ -57,6 +57,7 @@
 #include "enums.h"
 #include "extensions.h"
 #include "swrast/swrast.h"
+#include "swrast_setup/swrast_setup.h"
 
 /* These lookup table are used to extract RGB values in [0,255] from
  * 16-bit pixel values.
index 18f50766c6551879f107a7de995dda7e0a07dd8d..64ba6670d7c674eda30ff1609da63eb477409c31 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: colortab.c,v 1.25 2000/10/31 18:09:44 keithw Exp $ */
+/* $Id: colortab.c,v 1.26 2000/11/10 17:45:15 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -35,6 +35,7 @@
 #include "macros.h"
 #include "mem.h"
 #include "mmath.h"
+#include "swrast/s_span.h" /* XXX SWRAST hack */
 #endif
 
 
index 6b24600f31d9dc854acf78b9c9a205db22634b2f..f06f240aa6b007a4491e071169ec014f9d394826 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: convolve.c,v 1.9 2000/10/31 18:09:44 keithw Exp $ */
+/* $Id: convolve.c,v 1.10 2000/11/10 17:45:15 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -42,6 +42,7 @@
 #include "context.h"
 #include "image.h"
 #include "types.h"
+#include "swrast/s_span.h" /* XXX SWRAST hack */
 #endif
 
 
index b17b6052db71541af997346314710d4c4a034dff..ca6b05c48694dad6d27ddbfd38659498960c68f7 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_context.c,v 1.2 2000/11/05 18:24:40 keithw Exp $ */
+/* $Id: s_context.c,v 1.3 2000/11/10 17:45:16 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -196,7 +196,7 @@ _swrast_validate_point( GLcontext *ctx, SWvertex *v0 )
    swrast->Point( ctx, v0 );
 }
 
-void 
+static void 
 _swrast_validate_blend_func( GLcontext *ctx, GLuint n,
                             const GLubyte mask[],
                             GLchan src[][4], 
@@ -211,7 +211,7 @@ _swrast_validate_blend_func( GLcontext *ctx, GLuint n,
 }
 
 
-void 
+static void 
 _swrast_validate_texture_sample( GLcontext *ctx, GLuint texUnit,
                                 const struct gl_texture_object *tObj,
                                 GLuint n,
index 4d119eff1e341ac5c99843dc7742aa651b95029d..d646bd4b28ef2e99a310244a1612dd1ab5ef7a8a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_drawpix.c,v 1.2 2000/11/05 18:24:40 keithw Exp $ */
+/* $Id: s_drawpix.c,v 1.3 2000/11/10 17:45:16 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -36,6 +36,7 @@
 #include "pixel.h"
 
 #include "s_context.h"
+#include "s_drawpix.h"
 #include "s_pixeltex.h"
 #include "s_span.h"
 #include "s_stencil.h"
index feaf189d4d0978f2cb6f347c444753380414c149..c25a3851759afdfeb22321ab864d2569e18a9c61 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_lines.c,v 1.3 2000/11/05 23:18:36 brianp Exp $ */
+/* $Id: s_lines.c,v 1.4 2000/11/10 17:45:16 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -912,6 +912,8 @@ static void flat_multitextured_line( GLcontext *ctx,
 
 
 #ifdef DEBUG
+extern void
+_mesa_print_line_function(GLcontext *ctx);  /* silence compiler warning */
 void
 _mesa_print_line_function(GLcontext *ctx)
 {
index a4a889e2ddfb2f248b571c2ed3170a8c1e49de3c..59fadfb8e92521fce50fd31f4fdcd4cbf7dc9279 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_points.c,v 1.2 2000/11/05 18:24:40 keithw Exp $ */
+/* $Id: s_points.c,v 1.3 2000/11/10 17:45:16 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -852,6 +852,8 @@ dist_atten_antialiased_rgba_point( GLcontext *ctx, SWvertex *vert )
 
 
 #ifdef DEBUG
+extern void
+_mesa_print_point_function(GLcontext *ctx);  /* silence compiler warning */
 void
 _mesa_print_point_function(GLcontext *ctx)
 {
index c567d7997848524accca86f75321c50e9d2bf07b..88689499fd2495f4d90c64b34505068732e40b90 100644 (file)
@@ -30,6 +30,8 @@
 
 #include "types.h"
 
+
+
 /* The software rasterizer now uses this format for vertices.  Thus a
  * 'RasterSetup' stage or other translation is required between the
  * tnl module and the swrast rasterization functions.  This serves to
@@ -67,33 +69,32 @@ typedef struct {
 
 /* These are the public-access functions exported from swrast.  
  */
-void
+extern void
 _swrast_alloc_buffers( GLcontext *ctx );
 
-GLboolean
+extern GLboolean
 _swrast_CreateContext( GLcontext *ctx );
 
-void
+extern void
 _swrast_DestroyContext( GLcontext *ctx );
 
 
 
-
-void 
+extern void 
 _swrast_Bitmap( GLcontext *ctx, 
                GLint px, GLint py,
                GLsizei width, GLsizei height,
                const struct gl_pixelstore_attrib *unpack,
                const GLubyte *bitmap );
 
-void
+extern void
 _swrast_CopyPixels( GLcontext *ctx, 
                    GLint srcx, GLint srcy, 
                    GLint destx, GLint desty, 
                    GLsizei width, GLsizei height,
                    GLenum type );
 
-void
+extern void
 _swrast_DrawPixels( GLcontext *ctx, 
                    GLint x, GLint y,
                    GLsizei width, GLsizei height,
@@ -101,51 +102,53 @@ _swrast_DrawPixels( GLcontext *ctx,
                    const struct gl_pixelstore_attrib *unpack,
                    const GLvoid *pixels );
 
-void
+extern void
 _swrast_ReadPixels( GLcontext *ctx,
                    GLint x, GLint y, GLsizei width, GLsizei height,
                    GLenum format, GLenum type,
                    const struct gl_pixelstore_attrib *unpack,
                    GLvoid *pixels );
 
-void 
+extern void 
 _swrast_Clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
               GLint x, GLint y, GLint width, GLint height );
 
-void
+extern void
 _swrast_Accum( GLcontext *ctx, GLenum op, 
               GLfloat value, GLint xpos, GLint ypos, 
               GLint width, GLint height );
 
+
 /* Get a pointer to the stipple counter.
  */
-GLuint *
+extern GLuint *
 _swrast_get_stipple_counter_ref( GLcontext *ctx );
 
 
 /* These will always render the correct point/line/triangle for the
  * current state.
  */
-void
+extern void
 _swrast_Point( GLcontext *ctx, SWvertex *v );
 
-void
+extern void
 _swrast_Line( GLcontext *ctx, SWvertex *v0, SWvertex *v1 );
 
-void
+extern void
 _swrast_Triangle( GLcontext *ctx, SWvertex *v0, SWvertex *v1, SWvertex *v2 );
 
-void
+extern void
 _swrast_Quad( GLcontext *ctx, SWvertex *v0, SWvertex *v1, SWvertex *v2, 
              SWvertex *v3);
 
-void 
+extern void 
 _swrast_flush( GLcontext *ctx );
 
 
 /* Tell the software rasterizer about core state changes.
  */
-void
+extern void
 _swrast_InvalidateState( GLcontext *ctx, GLuint new_state );
 
+
 #endif
index 4809e6f3286e7b7c11fc8c978746107dec2549d6..a10f22cb3f57a5a23df283042155c8bdd466231f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: ss_context.c,v 1.1 2000/11/05 18:20:18 keithw Exp $ */
+/* $Id: ss_context.c,v 1.2 2000/11/10 17:45:16 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -201,7 +201,7 @@ _swsetup_DestroyContext( GLcontext *ctx )
    }
 }
 
-GLboolean 
+void
 _swsetup_RegisterVB( struct vertex_buffer *VB )
 {
    SSvertexbuffer *ssvb = (SSvertexbuffer *)CALLOC(sizeof(SSvertexbuffer) );
@@ -209,11 +209,11 @@ _swsetup_RegisterVB( struct vertex_buffer *VB )
    ssvb->verts = ALIGN_MALLOC( sizeof(SWvertex) * VB->Size, 32);
    if (!ssvb->verts) {
       FREE(ssvb);
-      return GL_FALSE;
+      /*return GL_FALSE;*/
    }
 
    VB->swsetup_vb = ssvb;
-   return GL_TRUE;
+   /*return GL_TRUE;*/
 }
 
 
index d9b253af9d232101a45c21be56ba262f3d880683..aa32f06f24bd930b58048b9e110f0ee101b5984d 100644 (file)
 #ifndef SWRAST_SETUP_H
 #define SWRAST_SETUP_H
 
-GLboolean 
+extern GLboolean 
 _swsetup_CreateContext( GLcontext *ctx );
 
-void 
+extern void 
 _swsetup_DestroyContext( GLcontext *ctx );
 
-GLboolean 
+extern void
 _swsetup_RegisterVB( struct vertex_buffer *VB );
 
-void 
+extern void 
 _swsetup_UnregisterVB( struct vertex_buffer *VB );
 
-void 
+extern void 
 _swsetup_InvalidateState( GLcontext *ctx, GLuint new_state );
 
-void 
+extern void 
 _swsetup_RasterSetup( struct vertex_buffer *VB, 
                     GLuint start, GLuint end );
 
-void 
+extern void 
 _swsetup_Quad( GLcontext *ctx, GLuint v0, GLuint v1, 
               GLuint v2, GLuint v3, GLuint pv );
 
-void 
+extern void 
 _swsetup_Triangle( GLcontext *ctx, GLuint v0, GLuint v1, 
                   GLuint v2, GLuint pv );
 
 
-void 
+extern void 
 _swsetup_Line( GLcontext *ctx, GLuint v0, GLuint v1, GLuint pv );
 
 
-void 
+extern void 
 _swsetup_Points( GLcontext *ctx, GLuint first, GLuint last );