]> granicus.if.org Git - esp-idf/commitdiff
mbedtls: enable deprecation warnings when building unit tests
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 8 May 2018 15:51:23 +0000 (23:51 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 9 May 2018 15:15:28 +0000 (23:15 +0800)
components/mbedtls/Makefile.projbuild

index ec9d6f2ce7e9fb095d8fb4327671e023aee5d742..cf49f9a1d58a3fcbe9a3e97a287c794ffa316d7f 100644 (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