https://git.reactos.org/?p=reactos.git;a=commitdiff;h=767d424b0aafd0eb49eb91ce3dc18d88bdf69ccf

commit 767d424b0aafd0eb49eb91ce3dc18d88bdf69ccf
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Sat Aug 17 20:29:16 2019 +0200
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Fri Aug 23 14:47:39 2019 +0200

    [CMAKE] Turn C4715: "'function': not all control paths return a value" into 
an error on MSVC builds
---
 sdk/cmake/msvc.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake
index 44b72771af0..419984b5d11 100644
--- a/sdk/cmake/msvc.cmake
+++ b/sdk/cmake/msvc.cmake
@@ -97,8 +97,9 @@ add_compile_flags("/wd4018")
 # - C4312: conversion from '<integer>' to '<pointer>' of greater size
 # - C4603: macro is not defined or definition is different after precompiled 
header use
 # - C4700: uninitialized variable usage
+# - C4715: 'function': not all control paths return a value
 # - C4716: function must return a value
-add_compile_flags("/we4013 /we4020 /we4022 /we4028 /we4047 /we4098 /we4113 
/we4129 /we4133 /we4163 /we4229 /we4311 /we4312 /we4603 /we4700 /we4716")
+add_compile_flags("/we4013 /we4020 /we4022 /we4028 /we4047 /we4098 /we4113 
/we4129 /we4133 /we4163 /we4229 /we4311 /we4312 /we4603 /we4700 /we4715 
/we4716")
 
 # - C4189: local variable initialized but not referenced
 # Not in Release mode and not with MSVC 2010

Reply via email to