mbedtls: enable deprecation warnings when building unit tests

This commit is contained in:
Ivan Grokhotkov 2018-05-08 23:51:23 +08:00
parent dbc919eff5
commit 7dada45d60

View file

@ -2,3 +2,7 @@
# alternative config file
CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"'
# Catch usage of deprecated mbedTLS functions when building tests
ifneq ("$(TEST_COMPONENTS_LIST)","")
CPPFLAGS += -DMBEDTLS_DEPRECATED_WARNING
endif