forked from roolebo/elfutils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readelf: Don't shadow index function from string.h
On some ancient GCC versions (4.4.7 at least) -Wshadow warns about local variables "shadowing" global function definitions. readelf.c: In function ‘print_debug_addr_section’: readelf.c:5265: error: declaration of ‘index’ shadows a global declaration /usr/include/string.h:489: error: shadowed declaration is here This is silly of course, but easy to work around. Signed-off-by: Mark Wielaard <[email protected]>
- Loading branch information
Mark Wielaard
committed
Jul 5, 2018
1 parent
e893aab
commit 3012cda
Showing
2 changed files
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
2018-07-04 Mark Wielaard <[email protected]> | ||
|
||
* readelf.c (print_debug_addr_section): Rename index var to uidx. | ||
(attr_callback): Rename index var to word. | ||
(print_debug_str_offsets_section): Rename index var to uidx. | ||
|
||
2018-07-04 Ross Burton <[email protected]> | ||
|
||
* addr2line.c: Remove error.h include. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters