From: Ian Jackson Date: Sat, 11 Jun 2011 11:11:15 +0000 (+0100) Subject: cleanup: specify never-interactive option for flex scanner X-Git-Tag: v0.2.0~83 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=commitdiff_plain;h=f0fb73c58ef5315260164b973fcc8c3996046856 cleanup: specify never-interactive option for flex scanner We never parse configuration interactively. That's just as well, because without "%option never-interactive" flex generates a redundant declaration of isatty which upsets -Wredundant-decls. This is a bug in flex IMO but the workaround is fine for secnet. Signed-off-by: Ian Jackson --- diff --git a/conffile.fl b/conffile.fl index c169b57..1747be2 100644 --- a/conffile.fl +++ b/conffile.fl @@ -3,6 +3,7 @@ %option nounput %option noinput +%option never-interactive %{ #include