From 95caa9e92259872945f3e4b7435e261dfb4fba1c Mon Sep 17 00:00:00 2001 From: Dave Beckett Date: Sat, 7 Jan 2017 19:20:54 -0800 Subject: (OSX) clang fix for ignoring -Wformat-nonliteral --- src/raptor_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raptor_internal.h b/src/raptor_internal.h index 7f41484d..bb80acbb 100644 --- a/src/raptor_internal.h +++ b/src/raptor_internal.h @@ -173,7 +173,7 @@ void raptor_sign_free(void *ptr); * * #if defined __STDC_VERSION__ && (__STDC_VERSION__ >= 199901L) */ -#if defined __GNUC__ && 460 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined(__clang__) || (defined __GNUC__ && 460 <= __GNUC__ * 100 + __GNUC_MINOR__) #define IGNORE_FORMAT_NONLITERAL_START \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wformat-nonliteral\"") -- cgit v1.2.1