diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-12 13:18:36 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-11-12 13:18:36 +0100 |
commit | be8658696a0e5c82f0b402373fe387c89756f23a (patch) | |
tree | f5c326958a9da496c65a9a08fb6f884ef7fb41f9 /gobject-introspection | |
parent | 57b711e2a0d41536245d7e3a8ccae71a72ba387e (diff) | |
download | vala-be8658696a0e5c82f0b402373fe387c89756f23a.tar.gz |
Fix build with -Werror=redundant-decls
Diffstat (limited to 'gobject-introspection')
-rw-r--r-- | gobject-introspection/scannerlexer.l | 9 |
1 files changed, 2 insertions, 7 deletions
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; |