aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915/intel_batchbuffer.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-09-02 15:44:04 -0700
committerIan Romanick <[email protected]>2015-09-10 20:29:51 -0700
commit86c0a2d57413f04fabd40fd09d87b0ff9d1cb092 (patch)
treeb71769ac187291dfcc53247c4ccf61e18711b27f /src/mesa/drivers/dri/i915/intel_batchbuffer.h
parent307d5e58496a73bace8c89dbdbba91be171b7c95 (diff)
i915, i965: Silence unused parameter warnings in intel_batchbuffer_advance
These only occurred in release builds, but they occurred in every file that included intel_batchbuffer.h. Lots of spam. :( intel_batchbuffer.h: In function 'intel_batchbuffer_advance': intel_batchbuffer.h:153:47: warning: unused parameter 'brw' [-Wunused-parameter] intel_batchbuffer_advance(struct brw_context *brw) ^ Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_batchbuffer.h')
-rw-r--r--src/mesa/drivers/dri/i915/intel_batchbuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.h b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
index feecc01394c..c4efa762bcb 100644
--- a/src/mesa/drivers/dri/i915/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.h
@@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)
abort();
}
batch->total = 0;
+#else
+ (void) intel;
#endif
}