summaryrefslogtreecommitdiffstats
path: root/CMake/PickyWarnings.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/PickyWarnings.cmake')
-rw-r--r--CMake/PickyWarnings.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMake/PickyWarnings.cmake b/CMake/PickyWarnings.cmake
index d1183fe..96e45f0 100644
--- a/CMake/PickyWarnings.cmake
+++ b/CMake/PickyWarnings.cmake
@@ -33,6 +33,16 @@ if(CURL_WERROR AND
set(WPICKY "${WPICKY} -pedantic-errors")
endif()
+if(APPLE AND
+ (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.6) OR
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 6.3))
+ set(WPICKY "${WPICKY} -Werror=partial-availability") # clang 3.6 appleclang 6.3
+endif()
+
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
+ set(WPICKY "${WPICKY} -Werror-implicit-function-declaration") # clang 1.0 gcc 2.95
+endif()
+
if(PICKY_COMPILER)
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")