File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,8 +100,6 @@ CFLAGS += $(OPTIMIZATION_FLAGS)
100100CFLAGS += $(INC ) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT )
101101
102102# Undo some warnings.
103- # # nrfx uses undefined preprocessor variables quite casually, so we can't do warning checks for these.
104- # CFLAGS += -Wno-undef
105103# nrfx does casts that increase alignment requirements.
106104CFLAGS += -Wno-cast-align
107105
@@ -240,6 +238,9 @@ endif
240238OBJ += $(addprefix $(BUILD ) /, $(SRC_S:.s=.o ) )
241239OBJ += $(addprefix $(BUILD ) /, $(SRC_MOD:.c=.o ) )
242240
241+ # nrfx uses undefined preprocessor variables quite casually, so we can't do
242+ # warning checks for these. Happily, we've confined the offenders to the NRFX
243+ # source files themselves.
243244$(addprefix $(BUILD ) /, $(SRC_NRFX :.c=.o)): CFLAGS += -Wno-undef
244245
245246$(BUILD ) /$(FATFS_DIR ) /ff.o : COPT += -Os
You can’t perform that action at this time.
0 commit comments