From bda6909df8caa2ae776056e857941be118163c10 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 26 Mar 2019 20:11:22 +0100 Subject: [PATCH] Fix bug #56003: `-Wc++-compat` causes build failure when using mbedtls Build without -Wc++-compat when MBEDTLS is included in project Works around problem in MBEDTLS headers --- contrib/ports/CMakeCommon.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/ports/CMakeCommon.cmake b/contrib/ports/CMakeCommon.cmake index 37b989af..fccf0f31 100644 --- a/contrib/ports/CMakeCommon.cmake +++ b/contrib/ports/CMakeCommon.cmake @@ -53,7 +53,6 @@ set(LWIP_COMPILER_FLAGS_GNU_CLANG -Wshadow -Wpointer-arith -Wcast-qual - $<$:-Wc++-compat> -Wwrite-strings $<$:-Wold-style-definition> -Wcast-align @@ -69,6 +68,7 @@ set(LWIP_COMPILER_FLAGS_GNU_CLANG if (NOT LWIP_HAVE_MBEDTLS) list(APPEND LWIP_COMPILER_FLAGS_GNU_CLANG -Wredundant-decls + $<$:-Wc++-compat> ) endif()