From: Ian Romanick Date: Mon, 11 May 2020 20:10:52 +0000 (-0700) Subject: intel: Silence unused parameter warning in __intel_log_use_args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ceae09da156309327d7ba6f4a59d3a2e9b8837d9;p=mesa.git intel: Silence unused parameter warning in __intel_log_use_args ...in every file that includes intel_log.h. In file included from src/intel/vulkan/anv_private.h:93, from src/intel/vulkan/genX_cmd_buffer.c:27: src/intel/common/intel_log.h: In function ‘__intel_log_use_args’: src/intel/common/intel_log.h:75:34: warning: unused parameter ‘format’ [-Wunused-parameter] Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/intel/common/intel_log.h b/src/intel/common/intel_log.h index 0f28109a0a4..1bfd1e20ac4 100644 --- a/src/intel/common/intel_log.h +++ b/src/intel/common/intel_log.h @@ -72,7 +72,7 @@ intel_log_v(enum intel_log_level, const char *tag, const char *format, #ifndef DEBUG /* Suppres -Wunused */ static inline void PRINTFLIKE(1, 2) -__intel_log_use_args(const char *format, ...) { } +__intel_log_use_args(UNUSED const char *format, ...) { } #endif #ifdef __cplusplus