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 2b5dbfb..f578ae1 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