Skip to content

Commit 01fdd95

Browse files
committed
disable iimplicit-fallthrough warning inside asf4
.. there is an instance of it that looks like a "true positive", but it only affects sdhc transfers that are not a multiple of 4 bytes, which I don't think happens. (sd card blocks are always 512 bytes) I can fix this in our asf4 repo but that would mean this should be deferred until after adafruit#3384 is merged, since that also touches asf4 very invasively by adding a whole new chip family.
1 parent 7151ee8 commit 01fdd95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ SRC_ASF += \
255255
hal/src/hal_mci_sync.c \
256256
hpl/sdhc/hpl_sdhc.c \
257257

258-
$(BUILD)/asf4/$(CHIP_FAMILY)/hpl/sdhc/hpl_sdhc.o: CFLAGS += -Wno-cast-align
258+
$(BUILD)/asf4/$(CHIP_FAMILY)/hpl/sdhc/hpl_sdhc.o: CFLAGS += -Wno-cast-align -Wno-implicit-fallthrough
259259
endif
260260

261261
$(BUILD)/asf4/$(CHIP_FAMILY)/hpl/sercom/hpl_sercom.o: CFLAGS += -Wno-maybe-uninitialized

0 commit comments

Comments
 (0)