Skip to content

Commit 06f6cd0

Browse files
committed
nrf: Improve commenting about disabled warnings
1 parent d61f66d commit 06f6cd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ports/nrf/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ CFLAGS += $(OPTIMIZATION_FLAGS)
100100
CFLAGS += $(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.
106104
CFLAGS += -Wno-cast-align
107105

@@ -240,6 +238,9 @@ endif
240238
OBJ += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
241239
OBJ += $(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

0 commit comments

Comments
 (0)