summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorMats Kindahl <mats@mysql.com>2008-08-22 12:40:21 +0200
committerMats Kindahl <mats@mysql.com>2008-08-22 12:40:21 +0200
commit8b637b284784d92b912318cd3b52d1550920fa09 (patch)
tree08c21d059849cad6cc8d0abd2edf15881718a197 /sql/log.cc
parent7207b18b25c5b0627a9a5c5b4261bd9a55cdd722 (diff)
downloadmariadb-git-8b637b284784d92b912318cd3b52d1550920fa09.tar.gz
Fixning compiler warnings. Fixing build failure for valgrind platform.
include/my_global.h: Moving YESNO() macro here from log.cc (it prints either "yes" or "no" depending on a boolean value). sql/log.cc: Moving YESNO() function to my_global.h. sql/sql_class.cc: Adding default case to printout function to avoid warning. Only defining function for debug builds since it isn't used in non-debug build (hence produce a warning). sql/sql_class.h: Printing yes/no answer instead of memory address since the case produces an error/warning on valgrind platform.
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc
index a6f3192b061..49c9bce95f1 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1448,8 +1448,6 @@ static int binlog_prepare(handlerton *hton, THD *thd, bool all)
return 0;
}
-#define YESNO(X) ((X) ? "yes" : "no")
-
/**
This function is called once after each statement.