From 60d7a46414918dc89b4951597b602c1349832238 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 14 Aug 2016 22:53:21 +0200 Subject: [PATCH] scanner.l: really fix pragma --- src/liboconfig/scanner.l | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/liboconfig/scanner.l b/src/liboconfig/scanner.l index 2b5dbfb7..f578ae10 100644 --- a/src/liboconfig/scanner.l +++ b/src/liboconfig/scanner.l @@ -33,13 +33,12 @@ #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 -- 2.11.0