summaryrefslogtreecommitdiff
path: root/cmake/os
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2010-06-22 18:40:14 +0200
committerVladislav Vaintroub <vvaintroub@mysql.com>2010-06-22 18:40:14 +0200
commit1ef39ee2d191b9a505050ffa8597583353c7088d (patch)
tree01a5df27de81ab3fd29aaf2b5cb7ba8bd6638454 /cmake/os
parent04f9d612a36c38c54320e50c6140bb3064cabb0a (diff)
downloadmariadb-git-1ef39ee2d191b9a505050ffa8597583353c7088d.tar.gz
Fix ~1000 warnings class/struct mismatch.
Handle this warning in the future as error, this will prevent pushing to main trees.
Diffstat (limited to 'cmake/os')
-rw-r--r--cmake/os/Windows.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/os/Windows.cmake b/cmake/os/Windows.cmake
index 3be739d3122..aac7e484f26 100644
--- a/cmake/os/Windows.cmake
+++ b/cmake/os/Windows.cmake
@@ -110,6 +110,10 @@ IF(MSVC)
ADD_DEFINITIONS(/wd4996)
ENDIF()
+ # Make class/struct definition mismatch an error (overseen too often,
+ # adds tons of new warnings)
+ ADD_DEFINITIONS(/we4099)
+
IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
# _WIN64 is defined by the compiler itself.
# Yet, we define it here again to work around a bug with Intellisense