From 26e2a97b1cbb099fae5a7b613ea1edbb342a4061 Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Mon, 6 Apr 2020 16:27:42 +0200 Subject: [Minor] enable Wmissing-format-attribute --- contrib/uthash/utstring.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/uthash') diff --git a/contrib/uthash/utstring.h b/contrib/uthash/utstring.h index f11f34b77..6130fac53 100644 --- a/contrib/uthash/utstring.h +++ b/contrib/uthash/utstring.h @@ -120,6 +120,9 @@ do { \ #define utstring_body(s) ((s)->d) +#ifdef __GNUC__ +__attribute__((format(printf, 2, 0))) +#endif _UNUSED_ static void utstring_printf_va(UT_string *s, const char *fmt, va_list ap) { int n; va_list cp; -- cgit v1.2.3