diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-14 20:28:26 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-06-14 20:28:26 -0400 |
commit | fe1bb39aa52d9140981ba1e96f3c95ddf14006ce (patch) | |
tree | 92891a26654467c1ebba7281cd1f60c3da925c68 /tools-util.h | |
parent | d228e43048dd7d915ca90bff7f54ea5a82234016 (diff) |
Fix format args to die()
Also, add the format attribute so we get warnings about this.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools-util.h')
-rw-r--r-- | tools-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools-util.h b/tools-util.h index 568707bc..de8010ee 100644 --- a/tools-util.h +++ b/tools-util.h @@ -22,7 +22,7 @@ #define noreturn __attribute__((noreturn)) -void die(const char *, ...) noreturn; +void die(const char *, ...) __attribute__((format(printf, 1, 2))) noreturn; char *mprintf(const char *, ...) __attribute__ ((format (printf, 1, 2))); void *xcalloc(size_t, size_t); |