Skip to content
Snippets Groups Projects
Commit 58216d16 authored by Brad King's avatar Brad King
Browse files

expat: Suppress compiler warnings

We are not developing expat so we do not care about warnings.
parent f177c8a0
No related branches found
No related tags found
No related merge requests found
# Disable warnings to avoid changing 3rd party code.
IF(CMAKE_C_COMPILER_ID MATCHES
"^(GNU|Clang|AppleClang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
ENDIF()
include(ConfigureChecks.cmake)
if(WIN32)
add_definitions(-DCOMPILING_FOR_WINDOWS)
......
......@@ -19,4 +19,9 @@
#include "expat_config.h"
#if defined(_MSC_VER)
# pragma warning(push,1)
# pragma warning(disable:4311) /* pointer truncation */
#endif
#endif /* ndef WINCONFIG_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment