summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2019-02-22 21:18:28 (GMT)
committerGennadiy Civil <misterg@google.com>2019-02-22 21:18:28 (GMT)
commitb6473fcf90a3de9a1edf4ac0e8409d7adf3a759c (patch)
treef2dd63489f5f4683f0798424205993d63b2c2c3b
parent7203f37f57e4fef0d77670098aabc186309eb874 (diff)
parenta4af76cf8c136a19dda28a5a22a0b84daf272b1e (diff)
downloadgoogletest-b6473fcf90a3de9a1edf4ac0e8409d7adf3a759c.zip
googletest-b6473fcf90a3de9a1edf4ac0e8409d7adf3a759c.tar.gz
googletest-b6473fcf90a3de9a1edf4ac0e8409d7adf3a759c.tar.bz2
Merge pull request #2126 from ngie-eign:clang-add-more-strict-warnings
PiperOrigin-RevId: 235220570
-rw-r--r--googletest/cmake/internal_utils.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake
index 3023904..eab18fd 100644
--- a/googletest/cmake/internal_utils.cmake
+++ b/googletest/cmake/internal_utils.cmake
@@ -81,6 +81,7 @@ macro(config_compiler_and_linker)
set(cxx_base_flags "-Wall -Wshadow -Werror -Wno-error=sign-conversion")
set(cxx_exception_flags "-fexceptions")
set(cxx_no_exception_flags "-fno-exceptions")
+ set(cxx_strict_flags "-W -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wredundant-decls")
elseif (CMAKE_COMPILER_IS_GNUCXX)
set(cxx_base_flags "-Wall -Wshadow -Werror")
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)