diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index 8af7aba0aa..1b9e9623b6 100644 --- a/ports/esp8266/Makefile +++ b/ports/esp8266/Makefile @@ -96,6 +96,9 @@ COPT += -Os -DNDEBUG LDFLAGS += --gc-sections endif +# Flags for optional C++ source code +CXXFLAGS += $(filter-out -Wmissing-prototypes -Wold-style-definition -std=gnu99,$(CFLAGS)) + # Options for mpy-cross MPY_CROSS_FLAGS += -march=xtensa