diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-11-26 10:12:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-11-26 10:12:35 -0800 |
commit | 2b63c337d99fe12220e6ca12a71dac6cdd3224d3 (patch) | |
tree | 9c5ca9fcee444732dbeb43040d09ba73766cc10c /binutils | |
parent | 41272101db08e20f044dbf0f09b6d79a0fa6c1ac (diff) | |
download | binutils-gdb-2b63c337d99fe12220e6ca12a71dac6cdd3224d3.tar.gz |
Rename argument name from link to xlink
This fixed the build with GCC 4.2:
cc1: warnings being treated as errors
binutils-gdb/binutils/dwarf.c: In function ‘load_separate_debug_info’:
binutils-gdb/binutils/dwarf.c:9650: warning: declaration of ‘link’ shadows a global declaration
/usr/include/unistd.h:757: warning: shadowed declaration is here
* dwarf.c (load_separate_debug_info): Rename argument name from
link to xlink.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/dwarf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index eab683047ed..75ef5cd0321 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2017-11-26 H.J. Lu <hongjiu.lu@intel.com> + + * dwarf.c (load_separate_debug_info): Rename argument name from + link to xlink. + 2017-11-24 H.J. Lu <hongjiu.lu@intel.com> PR binutils/22444 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 8b968797af5..a92e7b1fc65 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -9647,7 +9647,7 @@ parse_gnu_debugaltlink (struct dwarf_section * section, void * data) static void * load_separate_debug_info (const char * main_filename, - struct dwarf_section * link, + struct dwarf_section * xlink, parse_func_type parse_func, check_func_type check_func, void * func_data) @@ -9658,10 +9658,10 @@ load_separate_debug_info (const char * main_filename, size_t canon_dirlen; size_t dirlen; - if ((separate_filename = parse_func (link, func_data)) == NULL) + if ((separate_filename = parse_func (xlink, func_data)) == NULL) { warn (_("Corrupt debuglink section: %s\n"), - link->name ? link->name : link->uncompressed_name); + xlink->name ? xlink->name : xlink->uncompressed_name); return FALSE; } |