mirror of
https://github.com/google/googletest.git
synced 2025-12-08 09:47:49 +08:00
make the strict flags stricter for gcc
This commit is contained in:
parent
23a5db8330
commit
236f34476b
@ -114,7 +114,7 @@ macro(config_compiler_and_linker)
|
||||
# explicitly.
|
||||
set(cxx_no_rtti_flags "-fno-rtti -DGTEST_HAS_RTTI=0")
|
||||
set(cxx_strict_flags
|
||||
"-Wextra -Wno-unused-parameter -Wno-missing-field-initializers")
|
||||
"-Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wreturn-type -Werror")
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
|
||||
set(cxx_exception_flags "-features=except")
|
||||
# Sun Pro doesn't provide macros to indicate whether exceptions and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user