aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-01-04 10:33:11 +0000
committerNick Clifton <nickc@redhat.com>2022-01-04 10:34:01 +0000
commit40c01d1b3dbeb56b6220064504e431ba43725630 (patch)
treec883d3777f3553c24927e4ced5cf4e99a05bcafb /binutils/dwarf.c
parent926ac872e924e6618441f76917d58088d92dd11d (diff)
downloadgdb-40c01d1b3dbeb56b6220064504e431ba43725630.zip
gdb-40c01d1b3dbeb56b6220064504e431ba43725630.tar.gz
gdb-40c01d1b3dbeb56b6220064504e431ba43725630.tar.bz2
Add ATTRIBUTE_UNUSED to load_build_id_debug_file()'s main_filename parameter.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r--binutils/dwarf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index f14fdbb..52d4dd1 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -11309,7 +11309,7 @@ try_build_id_prefix (const char * prefix, char * filename, const unsigned char *
/* Try to load a debug file based upon the build-id held in the .note.gnu.build-id section. */
static void
-load_build_id_debug_file (const char * main_filename, void * main_file)
+load_build_id_debug_file (const char * main_filename ATTRIBUTE_UNUSED, void * main_file)
{
if (! load_debug_section (note_gnu_build_id, main_file))
return; /* No .note.gnu.build-id section. */