summaryrefslogtreecommitdiff
path: root/storage/innobase/include/ut0dbg.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-03-20 14:14:01 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-03-20 14:14:52 +0000
commit1ca8637ae35061d2567728a1c7aede11e68e5fff (patch)
tree7898f0e385034c40dbf5491b53638aac4129fbc8 /storage/innobase/include/ut0dbg.h
parent76f6c1e1ed2c48594832e20035cd15fec9c35d94 (diff)
downloadmariadb-git-1ca8637ae35061d2567728a1c7aede11e68e5fff.tar.gz
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
Diffstat (limited to 'storage/innobase/include/ut0dbg.h')
-rw-r--r--storage/innobase/include/ut0dbg.h2
1 files changed, 1 insertions, 1 deletions
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