chiark / gitweb /
Patch from Peter Benie.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 23 Jan 2017 14:31:23 +0000 (14:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 23 Jan 2017 14:31:23 +0000 (14:31 +0000)
* Specify #define YY_NO_INPUT, which avoids an unused function warning. Patch from Peter Benie.

debian/changelog
lexer.l
lexer.l.m4

index 2642ac5a11d0cfbe9657090a9f68d502b941e4d5..a8b333abd888b4a075cc327fee80b645abaafd02 100644 (file)
@@ -14,7 +14,9 @@ userv (1.1.2~~iwj1) unstable; urgency=low
   Packaging etc.
   * Honour XCFLAGS.
   * Use `%option nounput' rather than #define YY_NO_UNPUT.
   Packaging etc.
   * Honour XCFLAGS.
   * Use `%option nounput' rather than #define YY_NO_UNPUT.
-    Patch from Peter Benie, but modified.
+    Patch from Peter Benie.
+  * Specify #define YY_NO_INPUT, which avoids an unused function warning.
+    Patch from Peter Benie.
   * Update some copyright notices.
 
   Debian packaging:
   * Update some copyright notices.
 
   Debian packaging:
diff --git a/lexer.l b/lexer.l
index 27f51814ac3a44371ae52e1dd2737b3362bd39dc..3dc8590ac6009ed9518ddf141ceeed611ae79aa6 100644 (file)
--- a/lexer.l
+++ b/lexer.l
@@ -135,6 +135,8 @@ static struct error_handling eh = { tokv_word_errorstostderr, 0,0,0,0,0 };
 static int dequote(char *inplace);
 static void countnewlines(void);
 
 static int dequote(char *inplace);
 static void countnewlines(void);
 
+#define YY_NO_INPUT
+
 %}
 
 %option noyywrap
 %}
 
 %option noyywrap
index 1c3f8ef4143d5fefdd0e8e408357f3c2b238d36b..7be0be0d079322467b0cd9176c5439f132c4ed48 100644 (file)
@@ -134,6 +134,8 @@ static struct error_handling eh = { tokv_word_errorstostderr, 0,0,0,0,0 };
 static int dequote(char *inplace);
 static void countnewlines(void);
 
 static int dequote(char *inplace);
 static void countnewlines(void);
 
+#define YY_NO_INPUT
+
 %}
 
 %option noyywrap
 %}
 
 %option noyywrap