CMake: quiet warnings in GTest

This commit is contained in:
Campbell Barton 2015-06-23 14:33:17 +10:00
parent 4e8092e2e4
commit cd7853be22
2 changed files with 10 additions and 1 deletions

@ -950,8 +950,10 @@ macro(remove_strict_flags)
remove_cc_flag(
"-Wstrict-prototypes"
"-Wmissing-prototypes"
"-Wunused-parameter"
"-Wmissing-format-attribute"
"-Wunused-local-typedefs"
"-Wunused-macros"
"-Wunused-parameter"
"-Wwrite-strings"
"-Wredundant-decls"
"-Wundef"

@ -21,6 +21,13 @@
#
# ***** END GPL LICENSE BLOCK *****
# avoid noisy warnings
if(CMAKE_COMPILER_IS_GNUCC)
remove_cc_flag(
"-Wmissing-declarations"
)
endif()
set(INC
.
include