From 62f70a353f86e5ebd2889feed8d1223d11827312 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 13 Apr 2020 16:49:11 -0700 Subject: [PATCH] intel/compiler: Silence unused parameter warnings in vec4_tcs_visitor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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: --- src/intel/compiler/brw_vec4_tcs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.2