[Bug 712679] parse: prototype-mismatch
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Nov 29 07:57:18 PST 2013
https://bugzilla.gnome.org/show_bug.cgi?id=712679
GStreamer | gstreamer (core) | git
--- Comment #5 from Fabian <derfakir at web.de> 2013-11-29 15:48:12 UTC ---
the missing prototypes are in the generated header:
$ grep yy.*_col parse_lex.h
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
int yy_bs_column; /**< The column count. */
int priv_gst_parse_yyget_column (yyscan_t yyscanner );
void priv_gst_parse_yyset_column (int column_no ,yyscan_t yyscanner );
But lex.priv_gst_parse_yy.c does not include it:
$ grep parse_lex lex.priv_gst_parse_yy.c
$
instead flex already weaves it in:
$ grep -n yyget_col *.c
lex.priv_gst_parse_yy.c:1019:int priv_gst_parse_yyget_column (yyscan_t
yyscanner );
lex.priv_gst_parse_yy.c:2189:int priv_gst_parse_yyget_column (yyscan_t
yyscanner)
what version of flex do you have?
$ flex -V
flex 2.5.35
if i include parse_lex.h in parse.l, gcc complains later.
--- Comment #6 from Fabian <derfakir at web.de> 2013-11-29 15:56:21 UTC ---
the missing prototypes are in the generated header:
$ grep yy.*_col parse_lex.h
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
int yy_bs_column; /**< The column count. */
int priv_gst_parse_yyget_column (yyscan_t yyscanner );
void priv_gst_parse_yyset_column (int column_no ,yyscan_t yyscanner );
But lex.priv_gst_parse_yy.c does not include it:
$ grep parse_lex lex.priv_gst_parse_yy.c
$
instead flex already weaves it in:
$ grep -n yyget_col *.c
lex.priv_gst_parse_yy.c:1019:int priv_gst_parse_yyget_column (yyscan_t
yyscanner );
lex.priv_gst_parse_yy.c:2189:int priv_gst_parse_yyget_column (yyscan_t
yyscanner)
what version of flex do you have?
$ flex -V
flex 2.5.35
if i include parse_lex.h in parse.l, gcc complains later.
if we get [-Werror=redundant-decls] out of the make, than we can include
parse_lex.h in parse.l
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list