summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57d9574)
raw | patch | inline | side by side (parent: 57d9574)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 25 Jul 2015 19:29:50 +0000 (21:29 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Sat, 1 Aug 2015 07:10:41 +0000 (09:10 +0200) |
Flex has two options to disable input and unput.
Turn them on.
Turn them on.
src/liboconfig/scanner.l | patch | blob | history |
index 6294ae59b82e7704e7e02a70db6bd2fb73e4bcf2..e38cf3039f8d80c336baabc9afe1a45f755f36bb 100644 (file)
--- a/src/liboconfig/scanner.l
+++ b/src/liboconfig/scanner.l
*/
%{
-/* 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 <stdlib.h>
#include "oconfig.h"
#include "aux_types.h"
%}
%option yylineno
%option noyywrap
+%option noinput
+%option nounput
%x ML
WHITE_SPACE [\ \t\b]
NON_WHITE_SPACE [^\ \t\b]