[vala/staging] Fix build with -Werror=redundant-decls
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] Fix build with -Werror=redundant-decls
- Date: Sat, 12 Nov 2016 15:12:03 +0000 (UTC)
commit be8658696a0e5c82f0b402373fe387c89756f23a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Nov 12 13:18:36 2016 +0100
Fix build with -Werror=redundant-decls
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 3cfd406..f748e8c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]