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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>
This commit is contained in:
Ian Romanick 2020-05-11 13:10:52 -07:00 committed by Marge Bot
parent 4cb2330e56
commit ceae09da15
1 changed files with 1 additions and 1 deletions

View 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