mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
314ec7aeeb
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.
40 lines
1.5 KiB
C
40 lines
1.5 KiB
C
/* dlltool.h -- header file for dlltool
|
|
Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU Binutils.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
02110-1301, USA. */
|
|
|
|
extern void def_code (int);
|
|
extern void def_data (int);
|
|
extern void def_description (const char *);
|
|
extern void def_exports (const char *, const char *, int, int, int, int, int, const char *);
|
|
extern void def_heapsize (int, int);
|
|
extern void def_import
|
|
(const char *, const char *, const char *, const char *, int, const char *);
|
|
extern void def_library (const char *, int);
|
|
extern void def_name (const char *, int);
|
|
extern void def_section (const char *, int);
|
|
extern void def_stacksize (int, int);
|
|
extern void def_version (int, int);
|
|
extern int yyparse (void);
|
|
extern void yyerror (const char *);
|
|
extern int yylex (void);
|
|
|
|
extern int yydebug;
|
|
extern FILE *yyin;
|
|
extern int linenumber;
|