Mesa (master): intel/compiler: Silence unused parameter warnings in brw_eu.h

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 28 22:36:15 UTC 2018


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Aug 24 17:24:59 2018 -0700

intel/compiler: Silence unused parameter warnings in brw_eu.h

All of the other brw_*_desc functions take a devinfo parameter, and all
of the others at least have an assert that uses it.  Keep the parameter,
but mark it as unused.

Silences 37 warnings like:

In file included from src/intel/common/gen_disasm.c:27:0:
src/intel/compiler/brw_eu.h: In function ‘brw_pixel_interp_desc’:
src/intel/compiler/brw_eu.h:377:53: warning: unused parameter ‘devinfo’ [-Wunused-parameter]
 brw_pixel_interp_desc(const struct gen_device_info *devinfo,
                                                     ^~~~~~~

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>

---

 src/intel/compiler/brw_eu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h
index 2228b02240..9f1ca769bd 100644
--- a/src/intel/compiler/brw_eu.h
+++ b/src/intel/compiler/brw_eu.h
@@ -374,7 +374,7 @@ brw_dp_surface_desc(const struct gen_device_info *devinfo,
  * interpolator function controls.
  */
 static inline uint32_t
-brw_pixel_interp_desc(const struct gen_device_info *devinfo,
+brw_pixel_interp_desc(UNUSED const struct gen_device_info *devinfo,
                       unsigned msg_type,
                       bool noperspective,
                       unsigned simd_mode,




More information about the mesa-commit mailing list