diff options
author | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:42:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-12-11 13:42:17 +0000 |
commit | 91d6fa6a035cc7d0b7be5c99c194a64cb80924b0 (patch) | |
tree | 214507c313b77d619b52afcae2af0b02c9fa700b /bfd/xcofflink.c | |
parent | 01fe1b4183324882e88e8c64748bffdc69ea3a9c (diff) | |
download | fsf-binutils-gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.zip fsf-binutils-gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.gz fsf-binutils-gdb-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.bz2 |
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
Diffstat (limited to 'bfd/xcofflink.c')
-rw-r--r-- | bfd/xcofflink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/xcofflink.c b/bfd/xcofflink.c index 8885ca3..6ad148b 100644 --- a/bfd/xcofflink.c +++ b/bfd/xcofflink.c @@ -687,12 +687,12 @@ bfd_boolean bfd_xcoff_split_import_path (bfd *abfd, const char *filename, const char **imppath, const char **impfile) { - const char *basename; + const char *base; size_t length; char *path; - basename = lbasename (filename); - length = basename - filename; + base = lbasename (filename); + length = base - filename; if (length == 0) /* The filename has no directory component, so use an empty path. */ *imppath = ""; @@ -711,7 +711,7 @@ bfd_xcoff_split_import_path (bfd *abfd, const char *filename, path[length - 1] = 0; *imppath = path; } - *impfile = basename; + *impfile = base; return TRUE; } |