https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d840d7cb1b216876a0669…
commit d840d7cb1b216876a06695dae29904257346c7d2
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Wed Jul 18 17:08:57 2018 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Dec 16 23:12:22 2018 +0100
[CMAKE] MSVC: Make C4028 warning into error, on "i386" only
"C4028: formal parameter N different from declaration"
CORE-7538
---
sdk/cmake/msvc.cmake | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sdk/cmake/msvc.cmake b/sdk/cmake/msvc.cmake
index 95a0c252b9..eda0972729 100644
--- a/sdk/cmake/msvc.cmake
+++ b/sdk/cmake/msvc.cmake
@@ -71,7 +71,7 @@ add_compile_flags("/wd4018")
# - C4013: implicit function declaration
# - C4020: too many actual parameters
# - C4022: pointer type mismatch for parameter
-# - TODO: C4028: formal parameter different from declaration
+# - C4028: formal parameter different from declaration
# - C4047: different level of indirection
# - TODO: C4090: different 'modifier' qualifiers (for C programs only;
# for C++ programs, the compiler error C2440 is issued)
@@ -85,6 +85,10 @@ add_compile_flags("/wd4018")
# - C4603: macro is not defined or definition is different after precompiled header use
# - C4716: function must return a value
add_compile_flags("/we4013 /we4020 /we4022 /we4047 /we4098 /we4113 /we4129 /we4163 /we4229 /we4700 /we4603 /we4716")
+# TODO: Check and fix other architectures.
+if(ARCH STREQUAL "i386")
+ add_compile_flags("/we4028")
+endif()
# - C4189: local variable initialized but not referenced
# Not in Release mode and not with MSVC 2010