intel/compiler: Silence unused parameter warnings in vec4_tcs_visitor
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Apr 2020 23:49:11 +0000 (16:49 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 17 Apr 2020 15:21:37 +0000 (08:21 -0700)
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 <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4582>

src/intel/compiler/brw_vec4_tcs.h

index efa13ecc6cc16c2eace09fab0faf02ae0b1ae44f..d0285673adc50d351876104c7d237edad02dba36 100644 (file)
@@ -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;