From ceae09da156309327d7ba6f4a59d3a2e9b8837d9 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 11 May 2020 13:10:52 -0700 Subject: [PATCH] intel: Silence unused parameter warning in __intel_log_use_args MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ...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: --- src/intel/common/intel_log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2