From 40c01d1b3dbeb56b6220064504e431ba43725630 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 4 Jan 2022 10:33:11 +0000 Subject: [PATCH] Add ATTRIBUTE_UNUSED to load_build_id_debug_file()'s main_filename parameter. --- binutils/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.30.2