fix some compiler warnings

This commit is contained in:
Keith Whitwell 2003-02-23 20:24:11 +00:00
parent c91deeffc4
commit b4bc6375d1
6 changed files with 19 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.1.2.24 2003/02/23 19:37:52 keithw Exp $
# $Id: Makefile,v 1.1.2.25 2003/02/23 20:24:11 keithw Exp $
# Mesa 3-D graphics library
# Version: 5.0
@ -23,7 +23,7 @@ DEFINES = \
-D_HAVE_USERCLIP=0 \
-D_HAVE_FULL_GL=0
CFLAGS = $(INCLUDES) $(DEFINES) -O1 -MD -Wall -Wpointer-arith \
CFLAGS = $(INCLUDES) $(DEFINES) -g -MD -Wall -Wpointer-arith \
-Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs

View file

@ -104,7 +104,6 @@ static void radeonGetBufferSize( GLframebuffer *buffer,
*/
static const GLubyte *radeonGetString( GLcontext *ctx, GLenum name )
{
radeonContextPtr rmesa = RADEON_CONTEXT(ctx);
static char buffer[128];
switch ( name ) {

View file

@ -40,6 +40,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "radeon_state.h"
#include "radeon_ioctl.h"
#if _HAVE_FULL_GL
#include "radeon_tex.h"
#else
#include "radeon_subset.h"
#endif
#if DEBUG_LOCKING
char *prevLockFile = NULL;
int prevLockLine = 0;

View file

@ -54,6 +54,15 @@
#include "radeon_ioctl.h"
#include "radeon_state.h"
#if _HAVE_FULL_GL
#include "radeon_tex.h"
#include "radeon_vtxfmt.h"
#else
#include "radeon_subset.h"
#endif
#define MODEL_PROJ 0
#define MODEL 1

View file

@ -81,6 +81,7 @@ extern void radeonUploadMatrixTranspose( radeonContextPtr rmesa, GLfloat *src,
int idx );
extern void radeonUploadMatrix( radeonContextPtr rmesa, GLfloat *src, int idx );
extern void radeonUpdateScissor( GLcontext *ctx );
#endif

View file

@ -39,6 +39,7 @@
#include "colormac.h"
#include "enums.h"
#include "imports.h"
#include "image.h"
#include "mmath.h"
#include "macros.h"