From 112f0fd7675960f7cbf403882364e67e5ee39309 Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Wed, 21 Jun 2023 01:43:10 +0300 Subject: [PATCH] Add `-Wno-undef` to rp2 makefile for sdk --- ports/raspberrypi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/raspberrypi/Makefile b/ports/raspberrypi/Makefile index 7eb67b77ba..9c7c8549ca 100644 --- a/ports/raspberrypi/Makefile +++ b/ports/raspberrypi/Makefile @@ -142,6 +142,7 @@ INC += \ -Isdk_config \ -I../../lib/tinyusb/src \ -I../../supervisor/shared/usb \ + -I../bindings/cyw43/__init__.h \ -I$(BUILD) # Pico specific configuration @@ -171,7 +172,7 @@ else endif # Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird. -DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align +DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align -Wno-undef CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes