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:
commit
2dd49a0737
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user