diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-06-12 09:41:44 +0200 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2018-06-20 14:20:17 +0200 |
commit | 598b76cc5332e196518a9ec6d722ebaeb3781a9c (patch) | |
tree | ae79380434e291215c6e85295f5a369cd0ece0e3 /include | |
parent | ca8c3e73372babbf1aaa47db55a9360739ca37c5 (diff) |
Make sure the arguments passed to printf/die(...) match the format
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/i3status.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h index fe9206e..7bedfed 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -186,7 +186,8 @@ char *sstrdup(const char *str); /* src/general.c */ char *skip_character(char *input, char character, int amount); -void die(const char *fmt, ...); + +void die(const char *fmt, ...) __attribute__((format(printf, 1, 2), noreturn)); bool slurp(const char *filename, char *destination, int size); /* src/output.c */ |