From 70f066b3f95806dba5859e3671c44e8c0e6947bc Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Tue, 2 Feb 2016 22:21:08 -0800 Subject: [PATCH] Only enable clang-specific pragmas when clang is actually being used --- include/valijson/schema_parser.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/valijson/schema_parser.hpp b/include/valijson/schema_parser.hpp index 8323609..3e7f6bc 100644 --- a/include/valijson/schema_parser.hpp +++ b/include/valijson/schema_parser.hpp @@ -16,9 +16,8 @@ #include #include -#pragma clang diagnostic push - #ifdef __clang__ +# pragma clang diagnostic push # pragma clang diagnostic ignored "-Wunused-local-typedef" #endif @@ -1570,6 +1569,8 @@ private: } // namespace valijson -#pragma clang diagnostic pop +#ifdef __clang__ +# pragma clang diagnostic pop +#endif #endif