Merge pull request #15966 from aabadie/pr/make/gcc_10_riscv_failures

make: silence a couple of warnings raised with gcc 10 on riscv
This commit is contained in:
Alexandre Abadie 2021-02-16 12:05:42 +01:00 committed by GitHub
commit 2dd49a0737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ include $(RIOTBASE)/pkg/pkg.mk
# Enable code forcing aligned reads
CFLAGS += -DCBOR_ALIGN_READS
CFLAGS += -Wno-return-local-addr
all:
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -11,3 +11,7 @@ include $(RIOTBASE)/Makefile.include
ifneq (,$(shell $(CC) --help=warnings | grep '\-Wstringop-overflow='))
CFLAGS += -Wstringop-overflow=0
endif
ifneq (,$(shell $(CC) --help=warnings | grep '\-Warray-bounds='))
CFLAGS += -Warray-bounds=0
endif