From a51df1fd30a1a5bdf313615afdb375e71fbcdb12 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 9 Feb 2021 17:09:33 +0100 Subject: [PATCH 1/2] pkg/cn-cbor: ignore return local address warning This warning is triggered with gcc 10 on riscv and make the build to fail --- pkg/cn-cbor/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cn-cbor/Makefile b/pkg/cn-cbor/Makefile index 2d9bac4869..0f82a08045 100644 --- a/pkg/cn-cbor/Makefile +++ b/pkg/cn-cbor/Makefile @@ -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) From f515036c914b563fbe68e11b92459d50b9597643 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 9 Feb 2021 17:10:21 +0100 Subject: [PATCH 2/2] tests/ssp: silence array-bounds warning if present This warning is triggered on gcc 10 with riscv and makes the build to fail --- tests/ssp/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ssp/Makefile b/tests/ssp/Makefile index 8c13adedf6..9e141f5c99 100644 --- a/tests/ssp/Makefile +++ b/tests/ssp/Makefile @@ -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