aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/common
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2020-05-11 13:10:52 -0700
committerMarge Bot <[email protected]>2020-05-14 16:47:08 +0000
commitceae09da156309327d7ba6f4a59d3a2e9b8837d9 (patch)
treedd03d2cccb9c2ef67550c0cd1bf875a75e1a7b1c /src/intel/common
parent4cb2330e56568ae705e09e377ccc501051b2514e (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4994>
Diffstat (limited to 'src/intel/common')
-rw-r--r--src/intel/common/intel_log.h2
1 files changed, 1 insertions, 1 deletions
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