diff options
author | unknown <jani@ua141d10.elisa.omakaista.fi> | 2007-02-28 22:23:35 +0200 |
---|---|---|
committer | unknown <jani@ua141d10.elisa.omakaista.fi> | 2007-02-28 22:23:35 +0200 |
commit | def9c0b2367808d6e8f6b9ffe2f82f6465d9642b (patch) | |
tree | 288ffce0d7e95cc7177686fa96f53632b56e4161 /include | |
parent | 8c336fbc46fd3e8d1a7cc073883270c5a2ac3cc8 (diff) | |
download | mariadb-git-def9c0b2367808d6e8f6b9ffe2f82f6465d9642b.tar.gz |
Fixed compiler warnings.
client/mysql_upgrade.c:
Fixed problem with mysql_upgrade being dependent
on local my.cnf files and problem with memory not being freed.
client/mysqltest.c:
Changed type to avoid warning.
cmd-line-utils/readline/xmalloc.c:
Fix to avoid warning.
include/my_dbug.h:
To disable parts from code in non-debug more.
sql/field.cc:
Fixed warning.
sql/ha_archive.cc:
Fixed warning.
sql/ha_berkeley.cc:
Added casts to avoid warnings.
sql/ha_ndbcluster.cc:
Fixed warnings.
sql/log.cc:
Added casts to avoid warnings.
sql/slave.cc:
Avoid warning.
sql/sql_repl.cc:
Avoid warning.
support-files/compiler_warnings.supp:
Added disabled warnings to compiler_warnings.supp file.
These are backported mainly from 5.1 suppress file, but there
are some additional new ones.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dbug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index a3591f0151a..31fd507ec73 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -74,6 +74,7 @@ extern void _db_unlock_file(void); #define DBUG_ASSERT(A) assert(A) #define DBUG_EXECUTE_IF(keyword,a1) \ {if (_db_on_) {if (_db_strict_keyword_ (keyword)) { a1 }}} +#define IF_DBUG(A) A #else /* No debugger */ #define DBUG_ENTER(a1) @@ -98,6 +99,7 @@ extern void _db_unlock_file(void); #define DBUG_OUTPUT(A) #define DBUG_ASSERT(A) {} #define DBUG_LEAVE +#define IF_DBUG(A) #endif #ifdef __cplusplus } |