libarchive: Suppress PathScale compiler warnings

We are not developing libarchive so we do not care about warnings.
This commit is contained in:
Brad King 2012-01-04 09:57:46 -05:00
parent 2309438321
commit 9ccaeb10f9
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ SET(SOVERSION "${INTERFACE_VERSION}")
IF("${CMAKE_C_COMPILER_ID}" MATCHES
"^(GNU|Clang|XL|VisualAge|SunPro|MIPSpro|HP|Intel)$")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
ELSEIF("${CMAKE_C_COMPILER_ID}" MATCHES "^(PathScale)$")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
ELSEIF(BORLAND)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
ENDIF()