summaryrefslogtreecommitdiff
path: root/ports/nrf
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-08-12 12:51:35 -0500
committerJeff Epler <jepler@gmail.com>2020-08-12 12:59:48 -0500
commit06f6cd067dbf3c3f01d6f85445a190ee18e58b01 (patch)
treea3d0f7209af34463858af41aae34f0d8ba712957 /ports/nrf
parentd61f66d173c956b10679e83b93d7f84fbc6f0bb4 (diff)
nrf: Improve commenting about disabled warnings
Diffstat (limited to 'ports/nrf')
-rwxr-xr-xports/nrf/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile
index d1745a70e..3fef68e88 100755
--- a/ports/nrf/Makefile
+++ b/ports/nrf/Makefile
@@ -100,8 +100,6 @@ CFLAGS += $(OPTIMIZATION_FLAGS)
CFLAGS += $(INC) -Wall -Werror -std=gnu11 -nostdlib -fshort-enums $(BASE_CFLAGS) $(CFLAGS_MOD) $(COPT)
# Undo some warnings.
-## nrfx uses undefined preprocessor variables quite casually, so we can't do warning checks for these.
-#CFLAGS += -Wno-undef
# nrfx does casts that increase alignment requirements.
CFLAGS += -Wno-cast-align
@@ -240,6 +238,9 @@ endif
OBJ += $(addprefix $(BUILD)/, $(SRC_S:.s=.o))
OBJ += $(addprefix $(BUILD)/, $(SRC_MOD:.c=.o))
+# nrfx uses undefined preprocessor variables quite casually, so we can't do
+# warning checks for these. Happily, we've confined the offenders to the NRFX
+# source files themselves.
$(addprefix $(BUILD)/, $(SRC_NRFX:.c=.o)): CFLAGS += -Wno-undef
$(BUILD)/$(FATFS_DIR)/ff.o: COPT += -Os