mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +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:
@@ -59,6 +59,9 @@
|
|||||||
|
|
||||||
__EXPORT int bl_update_main(int argc, char *argv[]);
|
__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)
|
static void print_usage(const char *reason)
|
||||||
{
|
{
|
||||||
if (reason) {
|
if (reason) {
|
||||||
@@ -73,8 +76,6 @@ static void print_usage(const char *reason)
|
|||||||
PRINT_MODULE_USAGE_COMMAND_DESCR("<file>", "Bootloader bin file");
|
PRINT_MODULE_USAGE_COMMAND_DESCR("<file>", "Bootloader bin file");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined (CONFIG_STM32_STM32F40XX)
|
|
||||||
static int setopt(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in New Issue
Block a user