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:
parent
4cb2330e56
commit
ceae09da15
|
@ -72,7 +72,7 @@ intel_log_v(enum intel_log_level, const char *tag, const char *format,
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
/* Suppres -Wunused */
|
/* Suppres -Wunused */
|
||||||
static inline void PRINTFLIKE(1, 2)
|
static inline void PRINTFLIKE(1, 2)
|
||||||
__intel_log_use_args(const char *format, ...) { }
|
__intel_log_use_args(UNUSED const char *format, ...) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue