From 3323ccb803282dddcf1e403df33d00eaa0fbd0f8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 2 May 2008 12:25:48 -0700 Subject: [PATCH] [intel] Warnings fixes. --- src/mesa/drivers/dri/i965/brw_fallback.c | 1 - src/mesa/drivers/dri/i965/brw_program.c | 1 + src/mesa/drivers/dri/intel/intel_batchbuffer.c | 1 - src/mesa/drivers/dri/intel/intel_tex_subimage.c | 1 + 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fallback.c b/src/mesa/drivers/dri/i965/brw_fallback.c index 2cf29cc3417..b5cf821a938 100644 --- a/src/mesa/drivers/dri/i965/brw_fallback.c +++ b/src/mesa/drivers/dri/i965/brw_fallback.c @@ -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 */ diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index f717b6f6c35..c38610b24ed 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -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" diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index d4abbb08608..a594fb6cc46 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -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); diff --git a/src/mesa/drivers/dri/intel/intel_tex_subimage.c b/src/mesa/drivers/dri/intel/intel_tex_subimage.c index 688e3870df7..78621814c3a 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_subimage.c +++ b/src/mesa/drivers/dri/intel/intel_tex_subimage.c @@ -29,6 +29,7 @@ #include "mtypes.h" #include "texobj.h" #include "texstore.h" +#include "texcompress.h" #include "enums.h" #include "intel_context.h" -- 2.30.2