From: Chad Versace Date: Tue, 9 Jun 2015 21:46:18 +0000 (-0700) Subject: vk/util: Annotate anv_finishme() as printflike X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d57c4cf999381e4f6fbd8b5c85ead6bb5938290d;p=mesa.git vk/util: Annotate anv_finishme() as printflike --- 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;