summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-08-28 17:07:19 +0000
committermillert <millert@openbsd.org>2017-08-28 17:07:19 +0000
commitb299522fd25c4b1512a62ab573611a44254df5a8 (patch)
tree44d1dcb3a6452128ad537478ce991a6197c7a7e3
parentUpdate due to removal of original chacha20-poly1305 cipher suites. (diff)
downloadwireguard-openbsd-b299522fd25c4b1512a62ab573611a44254df5a8.tar.xz
wireguard-openbsd-b299522fd25c4b1512a62ab573611a44254df5a8.zip
Add %option noinput to suppress an unused function warning.
Noticed by and OK ottot@
-rw-r--r--lib/libkeynote/keynote-ver.l4
-rw-r--r--lib/libkeynote/keynote.l4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libkeynote/keynote-ver.l b/lib/libkeynote/keynote-ver.l
index 19ec8926ab4..768f88ef895 100644
--- a/lib/libkeynote/keynote-ver.l
+++ b/lib/libkeynote/keynote-ver.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: keynote-ver.l,v 1.19 2015/12/23 23:55:30 mmcc Exp $ */
+/* $OpenBSD: keynote-ver.l,v 1.20 2017/08/28 17:07:19 millert Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -40,7 +40,7 @@ litstring \"(((\\\n)|(\\.)|(\\\\)|([^\\\n\"]))*)\"
comment "#"[^\n]*
%s FIRSTPART MIDDLEPART SECONDPART KEYSTATE
%pointer
-%option noyywrap yylineno never-interactive
+%option noinput noyywrap yylineno never-interactive
%%
<MIDDLEPART>"=" {
diff --git a/lib/libkeynote/keynote.l b/lib/libkeynote/keynote.l
index 421e00553f3..f60966dd325 100644
--- a/lib/libkeynote/keynote.l
+++ b/lib/libkeynote/keynote.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: keynote.l,v 1.23 2015/11/19 19:48:27 tedu Exp $ */
+/* $OpenBSD: keynote.l,v 1.24 2017/08/28 17:07:19 millert Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -56,7 +56,7 @@ variable {vstring}
comment "#"[^\n]*
%s ACTIONSTRING LOCALINIT KEYPREDICATE SIGNERINIT KEYNOTEVERSION
%pointer
-%option noyywrap never-interactive yylineno
+%option noinput noyywrap never-interactive yylineno
%%
%{
/*