summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorDennis Camera <skonfig@dtnr.ch>2022-08-25 22:02:18 +0200
committerDennis Camera <skonfig@dtnr.ch>2022-08-25 22:07:46 +0200
commit153d17961a746e389c8d0810ac932c0546122eb8 (patch)
tree4be8ed75e6a9278e18caaf39f8edc4d727114817 /src/log.h
parent69892f64641a965a1bd586c916913018b54f7c71 (diff)
downloadskonfig-c-153d17961a746e389c8d0810ac932c0546122eb8.tar.gz
skonfig-c-153d17961a746e389c8d0810ac932c0546122eb8.zip
Use format __attribute__ instead of -Wformat-nonliteral hack
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 9cee8c2..0e898f1 100644
--- a/src/log.h
+++ b/src/log.h
@@ -103,7 +103,8 @@ void sk_log_font_set(sk_font_map *restrict font);
* @return the number of bytes logged (0 if no message was logged due to
* "insufficient" log level, and a negative number if an error occurred)
*/
-int sk_log(sk_log_level level, const char *restrict format, ...);
+int sk_log(sk_log_level level, const char *restrict format, ...)
+ SK_PRINTF(2, 3);
/**
* sk_error: