From: Ian Jackson Date: Mon, 23 Jan 2017 14:31:23 +0000 (+0000) Subject: Patch from Peter Benie. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=commitdiff_plain;h=f53cd40f20431be077e96cb70e6dae9692276356;hp=6cab4f8fc3de7f4e4cd5ab5a1989017ea8e695fe Patch from Peter Benie. * Specify #define YY_NO_INPUT, which avoids an unused function warning. Patch from Peter Benie. --- diff --git a/debian/changelog b/debian/changelog index 2642ac5..a8b333a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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. - 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: diff --git a/lexer.l b/lexer.l index 27f5181..3dc8590 100644 --- 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); +#define YY_NO_INPUT + %} %option noyywrap diff --git a/lexer.l.m4 b/lexer.l.m4 index 1c3f8ef..7be0be0 100644 --- a/lexer.l.m4 +++ b/lexer.l.m4 @@ -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); +#define YY_NO_INPUT + %} %option noyywrap