Skip to content

Commit 4cc575e

Browse files
ThePassionatepkarashchenko
authored andcommitted
crypto/libsodium: fix libsodium compilation warning
Signed-off-by: makejian <[email protected]>
1 parent ddf9a7a commit 4cc575e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

crypto/libsodium/CMakeLists.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,14 @@ if(CONFIG_LIBSODIUM)
5252
# Flags
5353
# ############################################################################
5454

55-
set(CFLAGS -Wno-unused-function -Wno-undef -Wno-unused-variable
56-
-Wno-deprecated-declarations -Wno-shadow)
55+
set(CFLAGS
56+
-DDEV_MODE
57+
-DCONFIGURED=1
58+
-Wno-unused-function
59+
-Wno-undef
60+
-Wno-unused-variable
61+
-Wno-deprecated-declarations
62+
-Wno-shadow)
5763

5864
# ############################################################################
5965
# Sources

crypto/libsodium/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ LIBSODIUM_UNPACKTESTDIR = $(LIBSODIUM_UNPACKNAME)$(DELIM)test$(DELIM)default
3333

3434
CSRCS += $(shell find $(LIBSODIUM_UNPACKLIBDIR) -name "*.c")
3535
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/crypto/libsodium/libsodium/src/libsodium/include/sodium
36+
CFLAGS += -DDEV_MODE -DCONFIGURED=1
3637
CFLAGS += -Wno-unused-function -Wno-undef -Wno-unused-variable -Wno-deprecated-declarations \
3738
-Wno-shadow
3839

0 commit comments

Comments
 (0)