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
This commit is contained in:
Dirk Ziegelmeier 2019-03-26 20:11:22 +01:00
parent ecd8c5b936
commit bda6909df8

View File

@ -53,7 +53,6 @@ set(LWIP_COMPILER_FLAGS_GNU_CLANG
-Wshadow
-Wpointer-arith
-Wcast-qual
$<$<COMPILE_LANGUAGE:C>:-Wc++-compat>
-Wwrite-strings
$<$<COMPILE_LANGUAGE:C>:-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
$<$<COMPILE_LANGUAGE:C>:-Wc++-compat>
)
endif()