From 153d17961a746e389c8d0810ac932c0546122eb8 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Thu, 25 Aug 2022 22:02:18 +0200 Subject: Use format __attribute__ instead of -Wformat-nonliteral hack --- src/log.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/log.c') diff --git a/src/log.c b/src/log.c index c4e33b1..7a3bf3f 100644 --- a/src/log.c +++ b/src/log.c @@ -92,10 +92,7 @@ int sk_log(sk_log_level level, const char *restrict format, ...) { va_list ap; va_start(ap, format); -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wformat-nonliteral" int rv = vfprintf(stream, format, ap); -#pragma clang diagnostic pop va_end(ap); fprintf(stream, SK_FONT_RESET "\n"); -- cgit v1.2.3