From: Ruben Kerkhof Date: Sun, 14 Aug 2016 19:32:00 +0000 (+0200) Subject: liboconfig: silence warnings in generated code X-Git-Tag: collectd-5.6.0~24 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=29a10f64032714e560e59aca9b29905888f4399a;p=collectd.git liboconfig: silence warnings in generated code Lex generates these, nothing we can do about them --- diff --git a/src/liboconfig/scanner.l b/src/liboconfig/scanner.l index 7a831c2a..09de4d2e 100644 --- a/src/liboconfig/scanner.l +++ b/src/liboconfig/scanner.l @@ -33,6 +33,11 @@ #include "aux_types.h" #include "parser.h" +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmissing-noreturn" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wsign-compare" + /* multiline string buffer */ static char *ml_buffer = NULL; static int ml_pos = 0; @@ -159,3 +164,5 @@ static void ml_append (char *string) return; } /* ml_append */ +#pragma clang diagnostic pop +#pragma GCC diagnostic pop