summaryrefslogtreecommitdiffstats
path: root/xmalloc.h
diff options
context:
space:
mode:
authornicm <nicm>2021-08-25 07:09:30 +0000
committernicm <nicm>2021-08-25 07:09:30 +0000
commita252fadf8a6df72e4a417de2668bffa971455193 (patch)
tree374dc2559f55356f1b30d52c38a2c69b543e33e6 /xmalloc.h
parent78da5a3756a9f51f8e49d2975f74a1ea800b58b6 (diff)
Fix up some printflike attributes.
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h2
1 files changed, 2 insertions, 0 deletions
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)));