From a252fadf8a6df72e4a417de2668bffa971455193 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 25 Aug 2021 07:09:30 +0000 Subject: Fix up some printflike attributes. --- xmalloc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmalloc.h') diff --git a/xmalloc.h b/xmalloc.h index 3fe4f1cc..b4dcb535 100644 --- a/xmalloc.h +++ b/xmalloc.h @@ -30,12 +30,14 @@ int xasprintf(char **, const char *, ...) __attribute__((__format__ (printf, 2, 3))) __attribute__((__nonnull__ (2))); int xvasprintf(char **, const char *, va_list) + __attribute__((__format__ (printf, 2, 0))) __attribute__((__nonnull__ (2))); int xsnprintf(char *, size_t, const char *, ...) __attribute__((__format__ (printf, 3, 4))) __attribute__((__nonnull__ (3))) __attribute__((__bounded__ (__string__, 1, 2))); int xvsnprintf(char *, size_t, const char *, va_list) + __attribute__((__format__ (printf, 3, 0))) __attribute__((__nonnull__ (3))) __attribute__((__bounded__ (__string__, 1, 2))); -- cgit