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
path: root/extern
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-05-19 03:33:02 +0300
committerCampbell Barton <campbell@blender.org>2022-05-19 04:17:01 +0300
commit41feaa17f3b1db488027d9754c02eda8a375f980 (patch)
tree397841dffb37db5576fcd8d6ab9dd170cd87b5ba /extern
parente9c3af3dd76641922b1b3e83095d72ce8968fd9b (diff)
Cleanup: suppress 'address' warnings for ./extern/glew
Also add comments noting why some warnings shouldn't be added to strict-flags.
Diffstat (limited to 'extern')
-rw-r--r--extern/glew/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/extern/glew/CMakeLists.txt b/extern/glew/CMakeLists.txt
index bd35fa81538..ce51c8b2f7b 100644
--- a/extern/glew/CMakeLists.txt
+++ b/extern/glew/CMakeLists.txt
@@ -7,6 +7,11 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
"-Wno-strict-prototypes"
)
endif()
+if(CMAKE_COMPILER_IS_GNUCC AND (NOT "${CMAKE_C_COMPILER_VERSION}" VERSION_LESS "12.1"))
+ add_c_flag(
+ "-Wno-address"
+ )
+endif()
# MSVC's inliner is not having a happy time with glewIsSupported
# causing this to be one of the most expensive things to build