From: rlar Date: Wed, 16 Mar 2016 18:45:41 +0000 (+0100) Subject: warning: redundant redeclaration of '...' [-Wredundant-decls] X-Git-Tag: v2.6.2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70b804fb02009ffa33426fab5196d9d14903b50d;p=flex warning: redundant redeclaration of '...' [-Wredundant-decls] --- diff --git a/tests/alloc_extra.l b/tests/alloc_extra.l index d50c135..ae2ae99 100644 --- a/tests/alloc_extra.l +++ b/tests/alloc_extra.l @@ -43,9 +43,6 @@ struct Check { /* Save char into junk array at next position. */ static void check_extra ( yyscan_t scanner ); -/* Special yyalloc */ -void *yyalloc ( size_t size, yyscan_t scanner ); - %} %option 8bit prefix="test" diff --git a/tests/bison_nr_main.c b/tests/bison_nr_main.c index f5dd98a..dfd6749 100644 --- a/tests/bison_nr_main.c +++ b/tests/bison_nr_main.c @@ -24,7 +24,6 @@ #include "bison_nr_parser.h" #include "bison_nr_scanner.h" -extern int testparse(void); int main ( int argc, char** argv ) { diff --git a/tests/bison_nr_parser.y b/tests/bison_nr_parser.y index 6b55b87..b981f7e 100644 --- a/tests/bison_nr_parser.y +++ b/tests/bison_nr_parser.y @@ -38,7 +38,6 @@ /* #define YYLEX_PARAM scanner */ int yyerror(const char* msg); -extern int testget_lineno(void); /* A dummy function. A check against seg-faults in yylval->str. */ diff --git a/tests/bison_yylloc_parser.y b/tests/bison_yylloc_parser.y index 51c0557..93c63c0 100644 --- a/tests/bison_yylloc_parser.y +++ b/tests/bison_yylloc_parser.y @@ -40,8 +40,6 @@ int yyerror(YYLTYPE *location, void* scanner, const char* msg); #define YYERROR_VERBOSE 1 -extern int testget_lineno(void*); - /* A dummy function. A check against seg-faults in yylval->str. */ static int process_text(char* s) {