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
This commit is contained in:
parent
76f6c1e1ed
commit
1ca8637ae3
@ -61,7 +61,7 @@ ut_dbg_assertion_failed(
|
||||
ut_dbg_assertion_failed(0, __FILE__, __LINE__)
|
||||
|
||||
/** Debug assertion */
|
||||
#define ut_ad(EXPR) DBUG_ASSERT(EXPR)
|
||||
#define ut_ad DBUG_ASSERT
|
||||
#ifdef UNIV_DEBUG
|
||||
/** Debug statement. Does nothing unless UNIV_DEBUG is defined. */
|
||||
#define ut_d(EXPR) EXPR
|
||||
|
Loading…
x
Reference in New Issue
Block a user