mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-12 05:00:28 +01:00
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:
parent
307d5e5849
commit
86c0a2d574
2 changed files with 4 additions and 0 deletions
|
|
@ -128,6 +128,8 @@ intel_batchbuffer_advance(struct intel_context *intel)
|
|||
abort();
|
||||
}
|
||||
batch->total = 0;
|
||||
#else
|
||||
(void) intel;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,6 +162,8 @@ intel_batchbuffer_advance(struct brw_context *brw)
|
|||
abort();
|
||||
}
|
||||
batch->total = 0;
|
||||
#else
|
||||
(void) brw;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue