summaryrefslogtreecommitdiff
path: root/sql-common/my_time.c
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-02-19 19:36:54 +0400
committerAlexander Barkov <bar@mariadb.com>2019-02-19 19:36:54 +0400
commit93984ff6d6aef2b9a522196f3db69e1d019221b9 (patch)
tree1401b71d86eaeeec378183a0219f91876fd3eee4 /sql-common/my_time.c
parentabd3c202f6227a46f50c0d93cb621c9ed1e499c0 (diff)
downloadmariadb-git-93984ff6d6aef2b9a522196f3db69e1d019221b9.tar.gz
Fixing compilation problems with this DBUG_ASSERT_AS_PRINTF
For example, with this cmake command line: cmake . -DCMAKE_C_FLAGS="-DDBUG_ASSERT_AS_PRINTF" \ -DCMAKE_CXX_FLAGS="-DDBUG_ASSERT_AS_PRINTF"
Diffstat (limited to 'sql-common/my_time.c')
-rw-r--r--sql-common/my_time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 2aa657ca14e..60df4ef118d 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -59,7 +59,8 @@ uint calc_days_in_year(uint year)
}
-#ifndef DBUG_OFF
+#ifdef DBUG_ASSERT_EXISTS
+
static const ulonglong C_KNOWN_FLAGS= C_TIME_NO_ZERO_IN_DATE |
C_TIME_NO_ZERO_DATE |