From: Ruben Kerkhof Date: Sat, 25 Jul 2015 19:29:50 +0000 (+0200) Subject: liboconfig: really fix lex warnings X-Git-Tag: collectd-5.5.1~68^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=24667b83fc74c9ee4f0b7b89124c7be95774511a;p=collectd.git liboconfig: really fix lex warnings Flex has two options to disable input and unput. Turn them on. --- diff --git a/src/liboconfig/scanner.l b/src/liboconfig/scanner.l index 6294ae59..e38cf303 100644 --- a/src/liboconfig/scanner.l +++ b/src/liboconfig/scanner.l @@ -18,12 +18,6 @@ */ %{ -/* lex and yacc do some weird stuff, so turn off some warnings. */ -#if defined(__clang__) -# pragma clang diagnostic ignored "-Wunused-function" -# pragma clang diagnostic ignored "-Wunneeded-internal-declaration" -#endif - #include #include "oconfig.h" #include "aux_types.h" @@ -47,6 +41,8 @@ static void ml_append (char *); %} %option yylineno %option noyywrap +%option noinput +%option nounput %x ML WHITE_SPACE [\ \t\b] NON_WHITE_SPACE [^\ \t\b]