From: Nick Clifton Date: Tue, 4 Jan 2022 10:33:11 +0000 (+0000) Subject: Add ATTRIBUTE_UNUSED to load_build_id_debug_file()'s main_filename parameter. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40c01d1b3dbeb56b6220064504e431ba43725630;p=binutils-gdb.git Add ATTRIBUTE_UNUSED to load_build_id_debug_file()'s main_filename parameter. --- diff --git a/binutils/dwarf.c b/binutils/dwarf.c index f14fdbb34fc..52d4dd1cad5 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. */