diff options
author | Alan Modra <amodra@gmail.com> | 2021-11-06 20:48:14 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-11-06 21:15:49 +1030 |
commit | 314ec7aeeb1b2e68f0d8fb9990f2335f475a6e33 (patch) | |
tree | 55e741cd404603b278fabe83cf3cb9f04eb4feb4 /binutils/dlltool.c | |
parent | e8f81980cee2d21605e60414a025f8b795147d9f (diff) | |
download | gdb-314ec7aeeb1b2e68f0d8fb9990f2335f475a6e33.zip gdb-314ec7aeeb1b2e68f0d8fb9990f2335f475a6e33.tar.gz gdb-314ec7aeeb1b2e68f0d8fb9990f2335f475a6e33.tar.bz2 |
Modernise yyerror
Newer versions of bison emit a prototype for yyerror
void yyerror (const char *);
This clashes with some of our old code that declares yyerror to return
an int. Fix that in most cases by modernizing yyerror. bfin-parse.y
uses the return value all over the place, so for there disable
generation of the prototype as specified by posix.
binutils/
* arparse.y (yyerror): Return void.
* dlltool.c (yyerror): Likewise.
* dlltool.h (yyerror): Likewise.
* sysinfo.y (yyerror): Likewise.
* windmc.h (yyerror): Likewise.
* mclex.c (mc_error): Extract from ..
(yyerror): ..here, both now returning void.
gas/
* config/bfin-parse.y (yyerror): Define.
(yyerror): Make static.
* itbl-parse.y (yyerror): Return void.
ld/
* deffilep.y (def_error): Return void.
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index e6fafb4..4f337f7 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -990,13 +990,11 @@ static int d_nforwards = 0; /* Number of forwarded exports. */ static int d_is_dll; static int d_is_exe; -int +void yyerror (const char * err ATTRIBUTE_UNUSED) { /* xgettext:c-format */ non_fatal (_("Syntax error in def file %s:%d"), def_file, linenumber); - - return 0; } void |