Fix build with older GCCs
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:25:53 +0000 (22:25 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:25:53 +0000 (22:25 +0200)
They warn for unknown pragmas

src/liboconfig/scanner.l

index 09de4d2..2b5dbfb 100644 (file)
 #include "aux_types.h"
 #include "parser.h"
 
+#ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wmissing-noreturn"
+#endif
+
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wsign-compare"
 
@@ -164,5 +167,8 @@ static void ml_append (char *string)
        return;
 } /* ml_append */
 
+#ifdef __clang__
 #pragma clang diagnostic pop
+#endif
+
 #pragma GCC diagnostic pop