From: Ruben Kerkhof Date: Sun, 14 Aug 2016 20:53:21 +0000 (+0200) Subject: scanner.l: really fix pragma X-Git-Tag: collectd-5.6.0~20 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=60d7a46414918dc89b4951597b602c1349832238;p=collectd.git scanner.l: really fix pragma --- 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