mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 13:14:59 +00:00
Merge pull request #953 from valord577/patch-1
Fix warning: no `-Wno-pedantic-ms-format` (`-Wunknown-warning-option`) for LLVM MinGW
This commit is contained in:
commit
e89e86a90b
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ if(FLAG_VISIBILITY)
|
|||
endif()
|
||||
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -fvisibility=hidden")
|
||||
endif()
|
||||
if(MINGW)
|
||||
if(MINGW AND ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
|
||||
# Without __USE_MINGW_ANSI_STDIO the compiler produces a false positive
|
||||
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -Wno-pedantic-ms-format")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Reference in a new issue