From: Ian Romanick Date: Mon, 13 Apr 2020 23:49:11 +0000 (-0700) Subject: intel/compiler: Silence unused parameter warnings in vec4_tcs_visitor X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62f70a353f86e5ebd2889feed8d1223d11827312;p=mesa.git intel/compiler: Silence unused parameter warnings in vec4_tcs_visitor In file included from src/intel/compiler/brw_vec4_tcs.cpp:31: src/intel/compiler/brw_vec4_tcs.h: In member function ‘virtual void brw::vec4_tcs_visitor::emit_urb_write_header(int)’: src/intel/compiler/brw_vec4_tcs.h:74:43: warning: unused parameter ‘mrf’ [-Wunused-parameter] 74 | virtual void emit_urb_write_header(int mrf) {} | ~~~~^~~ src/intel/compiler/brw_vec4_tcs.h: In member function ‘virtual brw::vec4_instruction* brw::vec4_tcs_visitor::emit_urb_write_opcode(bool)’: src/intel/compiler/brw_vec4_tcs.h:75:57: warning: unused parameter ‘complete’ [-Wunused-parameter] 75 | virtual vec4_instruction *emit_urb_write_opcode(bool complete) { return NULL; } | ~~~~~^~~~~~~~ Reviewed-by: Matt Turner Part-of: --- diff --git a/src/intel/compiler/brw_vec4_tcs.h b/src/intel/compiler/brw_vec4_tcs.h index efa13ecc6cc..d0285673adc 100644 --- a/src/intel/compiler/brw_vec4_tcs.h +++ b/src/intel/compiler/brw_vec4_tcs.h @@ -68,11 +68,11 @@ protected: void emit_urb_write(const src_reg &value, unsigned writemask, unsigned base_offset, const src_reg &indirect_offset); - /* we do not use the normal end-of-shader URB write mechanism -- but every vec4 stage - * must provide implementations of these: + /* we do not use the normal end-of-shader URB write mechanism -- but every + * vec4 stage must provide implementations of these: */ - virtual void emit_urb_write_header(int mrf) {} - virtual vec4_instruction *emit_urb_write_opcode(bool complete) { return NULL; } + virtual void emit_urb_write_header(int /* mrf */) {} + virtual vec4_instruction *emit_urb_write_opcode(bool /* complete */) { return NULL; } const struct brw_vue_map *input_vue_map;