diff --git a/CMake/PickyWarnings.cmake b/CMake/PickyWarnings.cmake index de5ae84fc7..7e70d75a0f 100644 --- a/CMake/PickyWarnings.cmake +++ b/CMake/PickyWarnings.cmake @@ -138,7 +138,7 @@ if(PICKY_COMPILER) (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 6.3)) list(APPEND _picky_enable ${_picky_common} - -Wunreachable-code-break # clang 3.5 appleclang 6.0 + # -Wunreachable-code-break # clang 3.5 appleclang 6.0 # Not used: Silent in "unity" builds -Wheader-guard # clang 3.4 appleclang 5.1 -Wsometimes-uninitialized # clang 3.2 appleclang 4.6 ) diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index c70cbf2fd7..79242faca7 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -879,7 +879,7 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ dnl Only clang 3.5 or later if test "$compiler_num" -ge "305"; then CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [pragmas]) - CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) + # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds fi # dnl Only clang 3.6 or later