diff options
author | Ingo Bürk <admin@airblader.de> | 2018-06-22 13:55:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 13:55:09 +0200 |
commit | 4d3344ab9cd68bad5faf4ed3dad185dfcacb1e3d (patch) | |
tree | 66846b5f6023291fda2d72fe523d4ee0614d2a1f /include | |
parent | 64fd6e10478cabd0e2f9b554b71971a865c02d60 (diff) | |
parent | c221b4d331d46d07fe24afc78e4eeb021556d013 (diff) |
Merge pull request #290 from duskCoder/changes
Fix potential issues & avoid unnecessary instructions
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 */ |