Skip to content

Commit

Permalink
pkg/wolfssl: disable maybe-uninitialized warning with wolfcrypt
Browse files Browse the repository at this point in the history
Only when building with riscv toolchain, because the default optimization used can lead to this problem.
  • Loading branch information
aabadie committed Oct 21, 2019
1 parent 300c3ab commit 02ff487
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/wolfssl/Makefile.wolfcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ SRC += ge_low_mem.c
SRC += sp_int.c
SRC += sp_c32.c

# Disable maybe-uninitialized warning raised by the optimization level used
# by risv toolchain (-Og)
ifeq ($(TARGET_ARCH),riscv-none-embed)
CFLAGS += -Wno-maybe-uninitialized
endif

include $(RIOTBASE)/Makefile.base

0 comments on commit 02ff487

Please sign in to comment.