From 1ca8637ae35061d2567728a1c7aede11e68e5fff Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 20 Mar 2017 14:14:01 +0000 Subject: [PATCH] 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 --- storage/innobase/include/ut0dbg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/include/ut0dbg.h b/storage/innobase/include/ut0dbg.h index 5a373c57c0c..706579a3b9f 100644 --- a/storage/innobase/include/ut0dbg.h +++ b/storage/innobase/include/ut0dbg.h @@ -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