diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-19 03:33:02 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-19 04:17:01 +0300 |
commit | 41feaa17f3b1db488027d9754c02eda8a375f980 (patch) | |
tree | 397841dffb37db5576fcd8d6ab9dd170cd87b5ba /extern | |
parent | e9c3af3dd76641922b1b3e83095d72ce8968fd9b (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.txt | 5 |
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 |