This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gas: local dirname shadows global dirname, dummy1 declaration isn't a prototype
- From: Jay K <jay dot krell at cornell dot edu>
- To: binutils <binutils at sourceware dot org>
- Date: Sat, 8 May 2010 04:15:02 +0000
- Subject: gas: local dirname shadows global dirname, dummy1 declaration isn't a prototype
cc1: warnings being treated as errors
/src/binutils/src/gas/dwarf2dbg.c: In function 'out_debug_info':
/src/binutils/src/gas/dwarf2dbg.c:1619:15: error: declaration of 'dirname' shadows a global declaratio
so I renamed local dirname to dir_name
/src/binutils/src/gas/flonum-konst.c:225:1: error: function declaration isn't a prototype
remove these lines at the bottom:
#ifdef VMS
void dummy1 () { }
#endif
or if they are needed for some compiler:
#ifdef VMS
#ifdef __STDC__
void dummy1 (void);
void dummy1 (void) { }
#else
dummy1 () { }
#endif
#endif
This is with gcc 4.5.0, build=i386-darwin, host=target=alpha-dec-vms.
?- Jay