mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +00:00
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:
parent
ecd8c5b936
commit
bda6909df8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user