Commit 3c74f80a authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix ~1000 warnings class/struct mismatch.

Handle this warning in the future as error, this will prevent pushing to main trees.
parent ad95121e
...@@ -110,6 +110,10 @@ IF(MSVC) ...@@ -110,6 +110,10 @@ IF(MSVC)
ADD_DEFINITIONS(/wd4996) ADD_DEFINITIONS(/wd4996)
ENDIF() 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) IF(CMAKE_SIZEOF_VOID_P MATCHES 8)
# _WIN64 is defined by the compiler itself. # _WIN64 is defined by the compiler itself.
# Yet, we define it here again to work around a bug with Intellisense # Yet, we define it here again to work around a bug with Intellisense
......
...@@ -998,7 +998,7 @@ extern const LEX_STRING null_lex_str; ...@@ -998,7 +998,7 @@ extern const LEX_STRING null_lex_str;
extern const LEX_STRING empty_lex_str; extern const LEX_STRING empty_lex_str;
struct Sroutine_hash_entry; class Sroutine_hash_entry;
/* /*
Class representing list of all tables used by statement and other Class representing list of all tables used by statement and other
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment