From: rlar Date: Sun, 28 Feb 2016 13:20:14 +0000 (+0100) Subject: warning: redundant redeclaration of ‘yyparse’ [-Wredundant-decls] X-Git-Tag: v2.6.1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=519783bb9812ba5d53383e0422cb6b1d4f38b392;p=flex warning: redundant redeclaration of ‘yyparse’ [-Wredundant-decls] --- diff --git a/src/flexdef.h b/src/flexdef.h index 343e81d..ecd6b41 100644 --- a/src/flexdef.h +++ b/src/flexdef.h @@ -983,7 +983,6 @@ extern void synerr(const char *); /* report a syntax error */ extern void format_warn(const char *, const char *); extern void warn(const char *); /* report a warning */ extern void yyerror(const char *); /* report a parse error */ -extern int yyparse(void); /* the YACC parser */ /* from file scan.l */ diff --git a/src/main.c b/src/main.c index e6ea2ab..9bec0c8 100644 --- a/src/main.c +++ b/src/main.c @@ -36,6 +36,7 @@ #include "version.h" #include "options.h" #include "tables.h" +#include "parse.h" static char flex_version[] = FLEX_VERSION;