aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/cmake
diff options
context:
space:
mode:
authorEnji Cooper <yaneurabeya@gmail.com>2019-02-18 19:19:34 -0800
committerEnji Cooper <yaneurabeya@gmail.com>2019-02-18 19:19:34 -0800
commitfcf59ca7bf6346ec08ed8591973517cdadc8e342 (patch)
tree23183b2a3bd3907939665cccaf03d97870b51076 /googletest/cmake
parentd850e144710e330070b756c009749dc7a7302301 (diff)
downloadgoogletest-fcf59ca7bf6346ec08ed8591973517cdadc8e342.tar.gz
googletest-fcf59ca7bf6346ec08ed8591973517cdadc8e342.tar.bz2
googletest-fcf59ca7bf6346ec08ed8591973517cdadc8e342.zip
Ignore `-Wsign-conversion` issues
clang++ compilation when `-Wsign-conversion` is currently broken and the issues within the code are varied and widespread. For the time being ignore `-Wsign-conversion` issues, even though some of them are valid and bleed over into issues that would be found with `-Wtautological-compare`, et al. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Diffstat (limited to 'googletest/cmake')
-rw-r--r--googletest/cmake/internal_utils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake
index 1909faf9..30239047 100644
--- a/googletest/cmake/internal_utils.cmake
+++ b/googletest/cmake/internal_utils.cmake
@@ -78,7 +78,7 @@ macro(config_compiler_and_linker)
# http://stackoverflow.com/questions/3232669 explains the issue.
set(cxx_base_flags "${cxx_base_flags} -wd4702")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
- set(cxx_base_flags "-Wall -Wshadow -Werror")
+ set(cxx_base_flags "-Wall -Wshadow -Werror -Wno-error=sign-conversion")
set(cxx_exception_flags "-fexceptions")
set(cxx_no_exception_flags "-fno-exceptions")
elseif (CMAKE_COMPILER_IS_GNUCXX)