[Mesa-dev] [PATCH 3/5] i915: silence unused var warnings in non-debug builds

Brian Paul brian.e.paul at gmail.com
Fri Oct 7 07:30:28 PDT 2011


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/drivers/dri/i915/i830_vtbl.c |    2 ++
 src/mesa/drivers/dri/i915/i915_vtbl.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c
index 7810f56..d8f9634 100644
--- a/src/mesa/drivers/dri/i915/i830_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i830_vtbl.c
@@ -717,6 +717,8 @@ i830_update_draw_buffer(struct intel_context *intel)
    struct intel_renderbuffer *irbDepth = NULL, *irbStencil = NULL;
    bool fb_has_hiz = intel_framebuffer_has_hiz(fb);
 
+   (void) fb_has_hiz;
+
    if (!fb) {
       /* this can happen during the initial context initialization */
       return;
diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c
index 1e84c6d..f4d8dff 100644
--- a/src/mesa/drivers/dri/i915/i915_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i915_vtbl.c
@@ -717,6 +717,8 @@ i915_update_draw_buffer(struct intel_context *intel)
    struct intel_renderbuffer *irbDepth = NULL, *irbStencil = NULL;
    bool fb_has_hiz = intel_framebuffer_has_hiz(fb);
 
+   (void) fb_has_hiz;
+
    if (!fb) {
       /* this can happen during the initial context initialization */
       return;
-- 
1.7.3.4



More information about the mesa-dev mailing list