mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08: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
|
-Wshadow
|
||||||
-Wpointer-arith
|
-Wpointer-arith
|
||||||
-Wcast-qual
|
-Wcast-qual
|
||||||
$<$<COMPILE_LANGUAGE:C>:-Wc++-compat>
|
|
||||||
-Wwrite-strings
|
-Wwrite-strings
|
||||||
$<$<COMPILE_LANGUAGE:C>:-Wold-style-definition>
|
$<$<COMPILE_LANGUAGE:C>:-Wold-style-definition>
|
||||||
-Wcast-align
|
-Wcast-align
|
||||||
@ -69,6 +68,7 @@ set(LWIP_COMPILER_FLAGS_GNU_CLANG
|
|||||||
if (NOT LWIP_HAVE_MBEDTLS)
|
if (NOT LWIP_HAVE_MBEDTLS)
|
||||||
list(APPEND LWIP_COMPILER_FLAGS_GNU_CLANG
|
list(APPEND LWIP_COMPILER_FLAGS_GNU_CLANG
|
||||||
-Wredundant-decls
|
-Wredundant-decls
|
||||||
|
$<$<COMPILE_LANGUAGE:C>:-Wc++-compat>
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user