Skip to content

Commit 67c5563

Browse files
committed
Apply -Wno-undef to just the needed file & remove incorrect -I arg
1 parent 112f0fd commit 67c5563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/raspberrypi/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ INC += \
142142
-Isdk_config \
143143
-I../../lib/tinyusb/src \
144144
-I../../supervisor/shared/usb \
145-
-I../bindings/cyw43/__init__.h \
146145
-I$(BUILD)
147146

148147
# Pico specific configuration
@@ -172,7 +171,7 @@ else
172171
endif
173172

174173
# Remove -Wno-stringop-overflow after we can test with CI's GCC 10. Mac's looks weird.
175-
DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align -Wno-undef
174+
DISABLE_WARNINGS = -Wno-stringop-overflow -Wno-cast-align
176175

177176
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT) $(DISABLE_WARNINGS) -Werror=missing-prototypes
178177

@@ -237,6 +236,7 @@ SRC_SDK := \
237236

238237
SRC_SDK := $(addprefix sdk/, $(SRC_SDK))
239238
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK) $(SRC_CYW43)): CFLAGS += -Wno-missing-prototypes -Wno-undef -Wno-unused-function -Wno-nested-externs -Wno-strict-prototypes -Wno-double-promotion -Wno-sign-compare -Wno-unused-variable -Wno-strict-overflow -Ilib/cyw43-driver
239+
$(BUILD)/sdk/src/rp2_common/pico_standard_link/crt0.o: CFLAGS += -Wno-undef
240240

241241
SRC_C += \
242242
boards/$(BOARD)/board.c \

0 commit comments

Comments
 (0)