[intel] Warnings fixes.
authorEric Anholt <eric@anholt.net>
Fri, 2 May 2008 19:25:48 +0000 (12:25 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 2 May 2008 19:25:48 +0000 (12:25 -0700)
src/mesa/drivers/dri/i965/brw_fallback.c
src/mesa/drivers/dri/i965/brw_program.c
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_tex_subimage.c

index 2cf29cc..b5cf821 100644 (file)
@@ -45,7 +45,6 @@ static GLboolean do_check_fallback(struct brw_context *brw)
 {
    GLcontext *ctx = &brw->intel.ctx;
    GLuint i;
-   struct gl_framebuffer *fb = ctx->DrawBuffer;
 
    /* BRW_NEW_METAOPS
     */
index f717b6f..c38610b 100644 (file)
@@ -33,6 +33,7 @@
 #include "main/enums.h"
 #include "shader/prog_parameter.h"
 #include "shader/program.h"
+#include "shader/programopt.h"
 #include "tnl/tnl.h"
 
 #include "brw_context.h"
index d4abbb0..a594fb6 100644 (file)
@@ -269,7 +269,6 @@ intel_batchbuffer_emit_reloc(struct intel_batchbuffer *batch,
                              GLuint flags, GLuint delta)
 {
    int ret;
-   int count = 0;
 
    ret = dri_emit_reloc(batch->buf, flags, delta, batch->ptr - batch->map, buffer);
 
index 688e387..7862181 100644 (file)
@@ -29,6 +29,7 @@
 #include "mtypes.h"
 #include "texobj.h"
 #include "texstore.h"
+#include "texcompress.h"
 #include "enums.h"
 
 #include "intel_context.h"