[Bf-blender-cvs] [1f493125e30] master: MSVC: promote C4033 to an error
Ray Molenkamp
noreply at git.blender.org
Wed Sep 28 16:33:08 CEST 2022
Commit: 1f493125e30d29f3bc0a295d667c770de2a0f2f5
Author: Ray Molenkamp
Date: Wed Sep 28 08:32:56 2022 -0600
Branches: master
https://developer.blender.org/rB1f493125e30d29f3bc0a295d667c770de2a0f2f5
MSVC: promote C4033 to an error
C4033 'function' must return a value
is a MSVC level-1 warning, clang and GCC
treat this as an error however, this
change promotes it to an error as well
for MSVC to mimic the GCC behaviour.
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8adf6c396f..68eb07e34f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1632,6 +1632,7 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "MSVC")
"/we4013" # 'function' undefined; assuming extern returning int
"/we4133" # incompatible pointer types
"/we4431" # missing type specifier - int assumed
+ "/we4033" # 'function' must return a value
)
string(REPLACE ";" " " _WARNINGS "${_WARNINGS}")
More information about the Bf-blender-cvs
mailing list