X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fliboconfig%2Fscanner.l;h=2b5dbfb7e7ef031ffac9d248ef94d1ccab2916a2;hb=62dc64b7d80d96c4dc563348691a1f60e4f77b58;hp=41d66438dd86e1176621034734d4666a29e0d773;hpb=f9a6df05238501ca41931af0d8d51acea716c105;p=collectd.git diff --git a/src/liboconfig/scanner.l b/src/liboconfig/scanner.l index 41d66438..2b5dbfb7 100644 --- a/src/liboconfig/scanner.l +++ b/src/liboconfig/scanner.l @@ -33,6 +33,14 @@ #include "aux_types.h" #include "parser.h" +#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; static int ml_pos = 0; @@ -146,7 +154,7 @@ static void ml_append (char *string) if (ml_free <= len) { ml_len += len - ml_free + 1; - ml_buffer = (char *)realloc (ml_buffer, ml_len); + ml_buffer = realloc (ml_buffer, ml_len); if (NULL == ml_buffer) YY_FATAL_ERROR ("out of dynamic memory in ml_append"); } @@ -159,3 +167,8 @@ static void ml_append (char *string) return; } /* ml_append */ +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + +#pragma GCC diagnostic pop