summaryrefslogtreecommitdiff
path: root/include/my_dbug.h
diff options
context:
space:
mode:
authorunknown <jani@a88-113-38-195.elisa-laajakaista.fi>2007-02-27 11:27:04 +0200
committerunknown <jani@a88-113-38-195.elisa-laajakaista.fi>2007-02-27 11:27:04 +0200
commit175507b766c471d7545165857debc0cd55d04422 (patch)
tree6a3fee1594ffd4bdb937f5f56c08a0b76745ae34 /include/my_dbug.h
parent1eb71c68cb1b2f335a8e6b393cdb3e724ea65a0a (diff)
downloadmariadb-git-175507b766c471d7545165857debc0cd55d04422.tar.gz
Fixes for compiler warnings.
include/my_dbug.h: Added macro for fixing compiler warnings. sql/field.cc: Fixed compiler warnings. sql/ha_ndbcluster.cc: Fixed compiler warnings. sql/ha_ndbcluster_binlog.cc: Fixed compiler warnings. Changed some tabs into spaces. sql/rpl_injector.h: Fixed compiler warnings. sql/sql_binlog.cc: Fixed compiler warnings. sql/sql_repl.cc: Fixed compiler warnings. sql/sql_table.cc: Fixed compiler warnings. storage/myisammrg/ha_myisammrg.cc: Fixed compiler warnings. strings/ctype-ucs2.c: Fixed compiler warnings. strings/ctype-utf8.c: Fixed compiler warnings. support-files/compiler_warnings.supp: Added suppressed warnings.
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r--include/my_dbug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h
index 0a529cb47de..0541cf00c29 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -80,6 +80,7 @@ extern FILE *_db_fp_(void);
#define DBUG_ASSERT(A) assert(A)
#define DBUG_EXPLAIN(buf,len) _db_explain_(0, (buf),(len))
#define DBUG_EXPLAIN_INITIAL(buf,len) _db_explain_init_((buf),(len))
+#define IF_DBUG(A) A
#else /* No debugger */
#define DBUG_ENTER(a1)
@@ -106,6 +107,7 @@ extern FILE *_db_fp_(void);
#define DBUG_UNLOCK_FILE
#define DBUG_EXPLAIN(buf,len)
#define DBUG_EXPLAIN_INITIAL(buf,len)
+#define IF_DBUG(A)
#endif
#ifdef __cplusplus
}