confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] [PATCH 2/5] confuse: remove unneeded static input() func


From: Carlo Marcelo Arenas Belon
Subject: [Confuse-devel] [PATCH 2/5] confuse: remove unneeded static input() function from generated code
Date: Sun, 30 Nov 2008 13:55:55 -0800

avoids the following warning when compiled with gcc >= 4.3 :

  lexer.c:1637: warning: ‘input’ defined but not used

Signed-off-by: Carlo Marcelo Arenas Belon <address@hidden>
---
 src/lexer.l |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/lexer.l b/src/lexer.l
index 6c1e70b..aff7f6f 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -36,6 +36,12 @@
 #endif
 #define N_(str) str
 
+/*
+ * Prevent compilation of static input() function in generated code
+ * This function is never used but GCC 4.3 will warn about it.
+ */
+#define YY_NO_INPUT
+
 typedef char * YYSTYPE;
 extern YYSTYPE cfg_yylval;
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]