From d57c4cf999381e4f6fbd8b5c85ead6bb5938290d Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 9 Jun 2015 14:46:18 -0700 Subject: [PATCH] vk/util: Annotate anv_finishme() as printflike --- src/vulkan/private.h | 3 ++- src/vulkan/util.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vulkan/private.h b/src/vulkan/private.h index 8cffdf1f91b..822cd890073 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -88,7 +88,8 @@ vk_error(VkResult error) return error; } -void __anv_finishme(const char *file, int line, const char *format, ...); +void __anv_finishme(const char *file, int line, const char *format, ...) + anv_printflike(3, 4); /** * Print a FINISHME message, including its source location. diff --git a/src/vulkan/util.c b/src/vulkan/util.c index 082499d6093..928f191847f 100644 --- a/src/vulkan/util.c +++ b/src/vulkan/util.c @@ -30,7 +30,7 @@ #include "private.h" -void +void anv_printflike(3, 4) __anv_finishme(const char *file, int line, const char *format, ...) { va_list ap; -- 2.30.2