From: Rico Tzschichholz Date: Sat, 12 Nov 2016 12:18:36 +0000 (+0100) Subject: Fix build with -Werror=redundant-decls X-Git-Tag: 0.35.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be8658696a0e5c82f0b402373fe387c89756f23a;p=thirdparty%2Fvala.git Fix build with -Werror=redundant-decls --- diff --git a/gobject-introspection/scannerlexer.l b/gobject-introspection/scannerlexer.l index 3cfd40633..f748e8c1c 100644 --- a/gobject-introspection/scannerlexer.l +++ b/gobject-introspection/scannerlexer.l @@ -44,7 +44,8 @@ char linebuf[2000]; extern int yylex (GIGenerator *igenerator); #define YY_DECL int yylex (GIGenerator *igenerator) -static int yywrap (void); +#define yywrap() (1) +#define YY_SKIP_YYWRAP static void parse_comment (GIGenerator *igenerator); static void process_linemarks (GIGenerator *igenerator, gboolean has_line); static int check_identifier (GIGenerator *igenerator, const char *); @@ -225,12 +226,6 @@ stringtext ([^\\\"])|(\\.) %% -static int -yywrap (void) -{ - return 1; -} - static void parse_gtkdoc (GIGenerator *igenerator, int *c1, int *c2) { gboolean isline = FALSE;