File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,6 @@ CFLAGS += $(OPTIMIZATION_FLAGS)
100
100
CFLAGS += $(INC ) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS ) $(CFLAGS_MOD ) $(COPT )
101
101
102
102
# Undo some warnings.
103
- # # nrfx uses undefined preprocessor variables quite casually, so we can't do warning checks for these.
104
- # CFLAGS += -Wno-undef
105
103
# nrfx does casts that increase alignment requirements.
106
104
CFLAGS += -Wno-cast-align
107
105
@@ -240,6 +238,9 @@ endif
240
238
OBJ += $(addprefix $(BUILD ) /, $(SRC_S:.s=.o ) )
241
239
OBJ += $(addprefix $(BUILD ) /, $(SRC_MOD:.c=.o ) )
242
240
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.
243
244
$(addprefix $(BUILD ) /, $(SRC_NRFX :.c=.o)): CFLAGS += -Wno-undef
244
245
245
246
$(BUILD ) /$(FATFS_DIR ) /ff.o : COPT += -Os
You can’t perform that action at this time.
0 commit comments