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:
authorRay Molenkamp <github@lazydodo.com>2022-09-28 17:32:56 +0300
committerRay Molenkamp <github@lazydodo.com>2022-09-28 17:32:56 +0300
commit1f493125e30d29f3bc0a295d667c770de2a0f2f5 (patch)
treeea77429165072d560436b3a6a84c468786c70bf8 /CMakeLists.txt
parent3f55121a185ab7259b319be98fcbb787f4ab842b (diff)
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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}")