From: Mike Frysinger Date: Mon, 12 Dec 2016 05:35:04 +0000 (-0500) Subject: elf2flt: fix unused warning for e1/bfin targets X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bbe423fae32a16b823e0ae7f3baf40b2d137b6fb;p=elf2flt.git elf2flt: fix unused warning for e1/bfin targets 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 --- 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