Mesa (master): intel/compiler: Silence unused parameter warnings in vec4_tcs_visitor

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 17 15:32:59 UTC 2020


Module: Mesa
Branch: master
Commit: 62f70a353f86e5ebd2889feed8d1223d11827312
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62f70a353f86e5ebd2889feed8d1223d11827312

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Apr 13 16:49:11 2020 -0700

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 <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4582>

---

 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;
 



More information about the mesa-commit mailing list