summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorrafal@quant.(none) <>2007-03-01 08:41:13 +0100
committerrafal@quant.(none) <>2007-03-01 08:41:13 +0100
commit8aee1f6e8963e758f3db5596f9c4fdfacee717d7 (patch)
treefd1a5c7a7d28d7e8961c86557471b963ce8381c3 /sql/mysql_priv.h
parent6889569fcb488efd256484b3fce0115f1b65a7c7 (diff)
downloadmariadb-git-8aee1f6e8963e758f3db5596f9c4fdfacee717d7.tar.gz
Fixes of compilation warnings and errors.
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 97f56c83b4f..7ca0d567253 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -100,7 +100,7 @@ void net_set_read_timeout(NET *net, uint timeout);
#define WARN_DEPRECATED(Thd,Ver,Old,New) \
do { \
DBUG_ASSERT(strncmp(Ver, MYSQL_SERVER_VERSION, sizeof(Ver)-1) > 0); \
- if (Thd != NULL) \
+ if (((gptr)Thd) != NULL) \
push_warning_printf(((THD *)Thd), MYSQL_ERROR::WARN_LEVEL_WARN, \
ER_WARN_DEPRECATED_SYNTAX, ER(ER_WARN_DEPRECATED_SYNTAX), \
(Old), (Ver), (New)); \