aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hx509/sel-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hx509/sel-lex.l')
-rw-r--r--lib/hx509/sel-lex.l12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/hx509/sel-lex.l b/lib/hx509/sel-lex.l
index bb7e8374c7d1..f401e40e3601 100644
--- a/lib/hx509/sel-lex.l
+++ b/lib/hx509/sel-lex.l
@@ -1,6 +1,6 @@
%{
/*
- * Copyright (c) 2004, 2008 Kungliga Tekniska Högskolan
+ * Copyright (c) 2004 - 2017 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -34,6 +34,11 @@
/* $Id$ */
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wunused-function"
+#endif
+
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -50,7 +55,6 @@ unsigned lineno = 1;
static char * handle_string(void);
static int lex_input(char *, int);
-static int lex_classic_input(void);
struct hx_expr_input _hx509_expr_input;
@@ -116,6 +120,10 @@ handle_string(void)
return strdup(x);
}
+#if !defined(yywrap)
+#define yywrap _hx509_sel_yywrap
+#endif
+
int
yywrap ()
{