From 05c3b711f3ebd82a8d681902f7413e63b9e6d3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 5 May 2017 10:36:58 +0200 Subject: [PATCH] fix bl_update: move definition of print_usage into the ifdef fixes the compile error: error: 'print_usage' defined but not used [-Werror=unused-function] --- src/systemcmds/bl_update/bl_update.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/systemcmds/bl_update/bl_update.c b/src/systemcmds/bl_update/bl_update.c index 1266c6e45a..febbf14883 100644 --- a/src/systemcmds/bl_update/bl_update.c +++ b/src/systemcmds/bl_update/bl_update.c @@ -59,6 +59,9 @@ __EXPORT int bl_update_main(int argc, char *argv[]); +#if defined (CONFIG_STM32_STM32F40XX) +static int setopt(void); + static void print_usage(const char *reason) { if (reason) { @@ -73,8 +76,6 @@ static void print_usage(const char *reason) PRINT_MODULE_USAGE_COMMAND_DESCR("", "Bootloader bin file"); } -#if defined (CONFIG_STM32_STM32F40XX) -static int setopt(void); #endif int