Skip to content

Commit 1ca8637

Browse files
committed
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
1 parent 76f6c1e commit 1ca8637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/include/ut0dbg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ut_dbg_assertion_failed(
6161
ut_dbg_assertion_failed(0, __FILE__, __LINE__)
6262

6363
/** Debug assertion */
64-
#define ut_ad(EXPR) DBUG_ASSERT(EXPR)
64+
#define ut_ad DBUG_ASSERT
6565
#ifdef UNIV_DEBUG
6666
/** Debug statement. Does nothing unless UNIV_DEBUG is defined. */
6767
#define ut_d(EXPR) EXPR

0 commit comments

Comments
 (0)