Module: Mesa Branch: master Commit: ceae09da156309327d7ba6f4a59d3a2e9b8837d9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ceae09da156309327d7ba6f4a59d3a2e9b8837d9
Author: Ian Romanick <[email protected]> Date: Mon May 11 13:10:52 2020 -0700 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> --- 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
