Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_files/cmake/macros.cmake4
-rw-r--r--extern/gtest/CMakeLists.txt7
2 files changed, 10 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake
index f5efd2297a8..c7398415c59 100644
--- a/build_files/cmake/macros.cmake
+++ b/build_files/cmake/macros.cmake
@@ -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"
diff --git a/extern/gtest/CMakeLists.txt b/extern/gtest/CMakeLists.txt
index 86f2aaa314a..21b296f93df 100644
--- a/extern/gtest/CMakeLists.txt
+++ b/extern/gtest/CMakeLists.txt
@@ -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