[Bf-blender-cvs] [82060c16977] master: Remove unused compile flag on linux x86 GCC platforms

Sebastian Parborg noreply at git.blender.org
Mon May 9 14:31:01 CEST 2022


Commit: 82060c16977ee32abac72129f2340e0a4a550942
Author: Sebastian Parborg
Date:   Mon May 9 14:26:56 2022 +0200
Branches: master
https://developer.blender.org/rB82060c16977ee32abac72129f2340e0a4a550942

Remove unused compile flag on linux x86 GCC platforms

The "cast-align" warning is only triggered on Arm CPUs when using GCC.
Currently the only officialy supported ARM platform is the Mac platform
where we use Clang. So this warning never triggers.

===================================================================

M	CMakeLists.txt

===================================================================

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f5660b3653b..f48334a298b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1539,7 +1539,6 @@ endif()
 if(CMAKE_COMPILER_IS_GNUCC)
 
   ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ALL -Wall)
-  ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_CAST_ALIGN -Wcast-align)
   ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_IMPLICIT_FUNCTION_DECLARATION -Werror=implicit-function-declaration)
   ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_RETURN_TYPE  -Werror=return-type)
   ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_ERROR_VLA -Werror=vla)



More information about the Bf-blender-cvs mailing list