From 598b76cc5332e196518a9ec6d722ebaeb3781a9c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Tue, 12 Jun 2018 09:41:44 +0200 Subject: Make sure the arguments passed to printf/die(...) match the format Signed-off-by: Olivier Gayot --- include/i3status.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/i3status.h') 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 */ -- cgit v1.2.3