From 5cba23e04dfc05dda60a84c026be864df866c186 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 10 Nov 2021 12:22:07 -0600 Subject: [PATCH] More missing-prototypes fixes --- ports/atmel-samd/supervisor/port.c | 1 + ports/espressif/modules/none.c | 2 ++ supervisor/supervisor.mk | 3 +++ 3 files changed, 6 insertions(+) diff --git a/ports/atmel-samd/supervisor/port.c b/ports/atmel-samd/supervisor/port.c index 5038d2550c99..ccff352443e5 100644 --- a/ports/atmel-samd/supervisor/port.c +++ b/ports/atmel-samd/supervisor/port.c @@ -109,6 +109,7 @@ #include "shared-bindings/rtc/__init__.h" #include "shared_timers.h" #include "reset.h" +#include "common-hal/pulseio/PulseIn.h" #include "supervisor/background_callback.h" #include "supervisor/shared/safe_mode.h" diff --git a/ports/espressif/modules/none.c b/ports/espressif/modules/none.c index 9b5433bd9d78..aa751bf3f402 100644 --- a/ports/espressif/modules/none.c +++ b/ports/espressif/modules/none.c @@ -24,5 +24,7 @@ * THE SOFTWARE. */ +#include "modules/module.h" + void never_reset_module_internal_pins(void) { } diff --git a/supervisor/supervisor.mk b/supervisor/supervisor.mk index 6789ab32ea29..3270f76ed14d 100644 --- a/supervisor/supervisor.mk +++ b/supervisor/supervisor.mk @@ -137,6 +137,9 @@ else endif endif +SRC_TINYUSB = $(filter lib/tinyusb/%.c, $(SRC_SUPERVISOR)) +$(patsubst %.c,$(BUILD)/%.o,$(SRC_TINYUSB)): CFLAGS += -Wno-missing-prototypes + SUPERVISOR_O = $(addprefix $(BUILD)/, $(SRC_SUPERVISOR:.c=.o)) ifeq ($(CIRCUITPY_DISPLAYIO), 1)