Code

scanner.l: really fix pragma
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:53:21 +0000 (22:53 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Aug 2016 20:53:21 +0000 (22:53 +0200)
src/liboconfig/scanner.l

index 2b5dbfb7e7ef031ffac9d248ef94d1ccab2916a2..f578ae1098c5160437495860032eda87baaa6e09 100644 (file)
 #include "aux_types.h"
 #include "parser.h"
 
+#pragma GCC diagnostic ignored "-Wsign-compare"
 #ifdef __clang__
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wmissing-noreturn"
 #endif
 
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wsign-compare"
 
 /* multiline string buffer */
 static char *ml_buffer = NULL;
@@ -170,5 +169,3 @@ static void ml_append (char *string)
 #ifdef __clang__
 #pragma clang diagnostic pop
 #endif
-
-#pragma GCC diagnostic pop