Commit 1ca8637a authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Windows : Fix several thousand of warnings with Visual C++ compiler

On some weird reason, Visual C++ does not like newly introduced
#define ut_ad(EXPR)	DBUG_ASSERT(EXPR)

and writes bogus "not enough parameters for DBUG_ASSERT" warning.

Workaround it with
#define ut_ad DBUG_ASSERT
parent 76f6c1e1
...@@ -61,7 +61,7 @@ ut_dbg_assertion_failed( ...@@ -61,7 +61,7 @@ ut_dbg_assertion_failed(
ut_dbg_assertion_failed(0, __FILE__, __LINE__) ut_dbg_assertion_failed(0, __FILE__, __LINE__)
/** Debug assertion */ /** Debug assertion */
#define ut_ad(EXPR) DBUG_ASSERT(EXPR) #define ut_ad DBUG_ASSERT
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
/** Debug statement. Does nothing unless UNIV_DEBUG is defined. */ /** Debug statement. Does nothing unless UNIV_DEBUG is defined. */
#define ut_d(EXPR) EXPR #define ut_d(EXPR) EXPR
......
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