mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 04:43:03 +00:00
Handles several --enable-gcc-warnings.
* src/getargs.c (command_line_location): Set parameters to void. * src/output.c (symbol_type_name_cmp): Make static. (symbols_by_type_name): Set parameters to void. (symbol_definitions_output): Remove unused parameter. Rename as... (prepare_symbol_definitions): this. (muscles_output): Move symbol_definitions_output to... (output): here as prepare_symbol_definitions. * tests/c++.at (AT_CHECK_VARIANTS): Remove unused parameters of main. (AT_CHECK_NAMESPACE): Make unused parameter lloc unnamed.
This commit is contained in:
@@ -174,7 +174,7 @@ yy::parser::error(const yy::parser::location_type&,
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
main (void)
|
||||
{
|
||||
yy::parser p;
|
||||
p.set_debug_level(!!getenv("YYDEBUG"));
|
||||
@@ -310,7 +310,7 @@ AT_DATA_GRAMMAR([[input.y]],
|
||||
|
||||
%code {
|
||||
// YYSTYPE contains a namespace reference.
|
||||
int yylex (YYSTYPE *lval, const ]$1[::parser::location_type* lloc) {
|
||||
int yylex (YYSTYPE *lval, const ]$1[::parser::location_type*) {
|
||||
lval->i = 3;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user