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 <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Ian Romanick 2015-09-02 15:44:04 -07:00
parent 307d5e5849
commit 86c0a2d574
2 changed files with 4 additions and 0 deletions

View file

@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)
abort();
}
batch->total = 0;
#else
(void) intel;
#endif
}

View file

@ -162,6 +162,8 @@ intel_batchbuffer_advance(struct brw_context *brw)
abort();
}
batch->total = 0;
#else
(void) brw;
#endif
}