From 9ccaeb10f9fd58503c8a7e1535f2c9154e3e8c93 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 4 Jan 2012 09:57:46 -0500 Subject: [PATCH] libarchive: Suppress PathScale compiler warnings We are not developing libarchive so we do not care about warnings. --- Utilities/cmlibarchive/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt index a24bb5d96..d0460eca0 100644 --- a/Utilities/cmlibarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/CMakeLists.txt @@ -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()