intel: Silence unused parameter warning in __intel_log_use_args
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 May 2020 20:10:52 +0000 (13:10 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 16:47:08 +0000 (16:47 +0000)
...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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>

src/intel/common/intel_log.h

index 0f28109a0a43bfdcaba59e7e2af71a4d9c338a69..1bfd1e20ac42e4a7f33833e2b3e27fb6dfa7068b 100644 (file)
@@ -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