From 24667b83fc74c9ee4f0b7b89124c7be95774511a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 25 Jul 2015 21:29:50 +0200 Subject: [PATCH] liboconfig: really fix lex warnings Flex has two options to disable input and unput. Turn them on. --- src/liboconfig/scanner.l | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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] -- 2.30.2