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]
This commit is contained in:
Beat Küng 2017-05-05 10:36:58 +02:00
parent a4ca3fc607
commit 05c3b711f3

View File

@ -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("<file>", "Bootloader bin file");
}
#if defined (CONFIG_STM32_STM32F40XX)
static int setopt(void);
#endif
int