From bbe423fae32a16b823e0ae7f3baf40b2d137b6fb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Dec 2016 00:35:04 -0500 Subject: [PATCH] elf2flt: fix unused warning for e1/bfin targets MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The one call site for this func is inside of an e1/bfin ifdef check, so add the same logic to the definition to fix a build error: elf2flt.c:212:1: error: ‘get_symbol_offset’ defined but not used [-Werror=unused-function] Signed-off-by: Mike Frysinger --- elf2flt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elf2flt.c b/elf2flt.c index 2d91bea..08296cf 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -208,6 +208,7 @@ dump_symbols(asymbol **symbol_table, long number_of_symbols) +#if !defined TARGET_e1 && !defined TARGET_bfin static long get_symbol_offset(char *name, asection *sec, asymbol **symbol_table, long number_of_symbols) { @@ -220,7 +221,8 @@ get_symbol_offset(char *name, asection *sec, asymbol **symbol_table, long number } } return -1; -} +} +#endif -- 2.39.5