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/dwarf.c | |
parent | 41272101db08e20f044dbf0f09b6d79a0fa6c1ac (diff) | |
download | gdb-2b63c337d99fe12220e6ca12a71dac6cdd3224d3.zip gdb-2b63c337d99fe12220e6ca12a71dac6cdd3224d3.tar.gz gdb-2b63c337d99fe12220e6ca12a71dac6cdd3224d3.tar.bz2 |
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/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 8b96879..a92e7b1 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; } |