[PATCH libXaw3d 1/5] Disable unused input and unput lex functions

Guillem Jover guillem at hadrons.org
Mon Oct 3 20:34:59 PDT 2011


Fixes gcc warnings:
laylex.c:1316:17: warning: 'yyunput' defined but not used [-Wunused-function]
laylex.c:1357:16: warning: 'input' defined but not used [-Wunused-function]

Signed-off-by: Guillem Jover <guillem at hadrons.org>
---
 src/laylex.l |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/laylex.l b/src/laylex.l
index 2574782..c85e766 100644
--- a/src/laylex.l
+++ b/src/laylex.l
@@ -1,5 +1,7 @@
 %option prefix="LayYY"
 %option outfile="lex.yy.c"
+%option noinput
+%option nounput
 %{
 #ifndef FLEX_SCANNER
 #undef input
-- 
1.7.6.3



More information about the xorg-devel mailing list