From 1e277d9b79943a5d85aa33c1a99d652652b4899d Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 23 Sep 2016 12:03:19 +0200 Subject: [PATCH] Fix warning when LED_START_FLASHES is 0 flash_led() would be declared but not defined, which causes a warning for static functions. --- optiboot/bootloaders/optiboot/optiboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/optiboot/bootloaders/optiboot/optiboot.c b/optiboot/bootloaders/optiboot/optiboot.c index df807ab..08aa906 100644 --- a/optiboot/bootloaders/optiboot/optiboot.c +++ b/optiboot/bootloaders/optiboot/optiboot.c @@ -359,7 +359,9 @@ void __attribute__((noinline)) verifySpace(); void __attribute__((noinline)) watchdogConfig(uint8_t x); static inline void getNch(uint8_t); +#if LED_START_FLASHES > 0 static inline void flash_led(uint8_t); +#endif static inline void watchdogReset(); static inline void writebuffer(int8_t memtype, uint8_t *mybuff, uint16_t address, pagelen_t len);