diff options
author | P. J. McDermott <pj@pehjota.net> | 2023-02-24 10:25:33 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2023-02-24 10:25:33 (EST) |
commit | 8ce13b8b9f1411a90e84ef6aee8c8409cb845acf (patch) | |
tree | 3ef77d1b2dabd8eee175cfa919d9f239e3a72ee5 /src/logging.h | |
parent | 7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4 (diff) | |
download | overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.zip overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.gz overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.bz2 |
Add function attributes
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/logging.h b/src/logging.h index 12c9b00..4ad66bc 100644 --- a/src/logging.h +++ b/src/logging.h @@ -19,8 +19,9 @@ #ifndef LOGGING_H #define LOGGING_H -void debug(const char *fmt, ...); -void warn(const char *fmt, ...); -void err(int status, const char *fmt, ...); +void debug(const char *fmt, ...) __attribute__((__format__(printf, 1, 2))); +void warn(const char *fmt, ...) __attribute__((__format__(printf, 1, 2))); +void err(int status, const char *fmt, ...) + __attribute__((__format__(printf, 2, 3))) __attribute__((__noreturn__)); #endif |