mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-28 19:21:03 +08:00
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:
1 parent
a4ca3fc607
commit
05c3b711f3
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user