Commit 9b21391
committed
stm32/mboot: Fix unused function warning with timeout enabled.
Conditionally compile try_enter_application() only when it's actually
used. With both MBOOT_ENABLE_DFU_TIMEOUT and MBOOT_LEAVE_BOOTLOADER_VIA_RESET
at their default values (1), the function was defined but never called,
causing -Werror=unused-function.
Signed-off-by: Andrew Leech <[email protected]>1 parent 4b18156 commit 9b21391
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
| 1484 | + | |
1484 | 1485 | | |
1485 | 1486 | | |
1486 | 1487 | | |
| |||
1511 | 1512 | | |
1512 | 1513 | | |
1513 | 1514 | | |
| 1515 | + | |
1514 | 1516 | | |
1515 | 1517 | | |
1516 | 1518 | | |
| |||
0 commit comments