diff options
author | rafal@quant.(none) <> | 2007-03-01 08:41:13 +0100 |
---|---|---|
committer | rafal@quant.(none) <> | 2007-03-01 08:41:13 +0100 |
commit | 8aee1f6e8963e758f3db5596f9c4fdfacee717d7 (patch) | |
tree | fd1a5c7a7d28d7e8961c86557471b963ce8381c3 /sql/mysql_priv.h | |
parent | 6889569fcb488efd256484b3fce0115f1b65a7c7 (diff) | |
download | mariadb-git-8aee1f6e8963e758f3db5596f9c4fdfacee717d7.tar.gz |
Fixes of compilation warnings and errors.
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 2 |
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)); \ |