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()