cleanup: specify never-interactive option for flex scanner
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jun 2011 11:11:15 +0000 (12:11 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 15:38:42 +0000 (16:38 +0100)
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 <ijackson@chiark.greenend.org.uk>
conffile.fl

index c169b57..1747be2 100644 (file)
@@ -3,6 +3,7 @@
 
 %option nounput
 %option noinput
+%option never-interactive
 
 %{
 #include <stdio.h>