Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5274
-gerrit
commit 473fdff74e520ae546f71607e8052fb1dbed927a Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Thu Feb 20 19:42:59 2014 +1100
util/sconfig: Fix missing prototype issue with bison/flex.
Clang throws missing prototype warnings where GCC does not. Shift around prototype declarations a little.
Change-Id: I929085e5ed87452e77409889e04b05d32e5f356c Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- util/sconfig/sconfig.h | 20 ++++++++++++++++++++ util/sconfig/sconfig.tab.c_shipped | 17 +---------------- 2 files changed, 21 insertions(+), 16 deletions(-)
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h index b8a231a..1aef26d 100644 --- a/util/sconfig/sconfig.h +++ b/util/sconfig/sconfig.h @@ -100,3 +100,23 @@ void alias_siblings(struct device *d); void add_resource(struct device *dev, int type, int index, int base); void add_register(struct device *dev, char *name, char *val); void add_pci_subsystem_ids(struct device *dev, int vendor, int device, int inherit); + +void add_ioapic_info(struct device *, int, const char *, int); + +void yyerror (const char *); +void yyrestart (FILE *input_file ); + +/* Prevent warnings from -Wmissing-prototypes. */ +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int yyparse (void *YYPARSE_PARAM); +#else +int yyparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int yyparse (void); +#else +int yyparse (); +#endif +#endif /* ! YYPARSE_PARAM */ diff --git a/util/sconfig/sconfig.tab.c_shipped b/util/sconfig/sconfig.tab.c_shipped index 3a56ac8..56045d0 100644 --- a/util/sconfig/sconfig.tab.c_shipped +++ b/util/sconfig/sconfig.tab.c_shipped @@ -673,6 +673,7 @@ while (YYID (0)) #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else +int yylex(void); # define YYLEX yylex () #endif
@@ -1127,22 +1128,6 @@ yydestruct (yymsg, yytype, yyvaluep) }
-/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ - - /* The lookahead symbol. */ int yychar;