mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
compiler warning
WARN_DEPRECATED_NO_REPLACEMENT(NULL, ...) was causing a warning, because it expanded into NULL->variables.errmsgs[...]
This commit is contained in:
@@ -77,11 +77,12 @@
|
||||
|
||||
#define WARN_DEPRECATED_NO_REPLACEMENT(Thd,Old) \
|
||||
do { \
|
||||
if (((THD *) Thd) != NULL) \
|
||||
push_warning_printf(((THD *) Thd), Sql_condition::WARN_LEVEL_WARN, \
|
||||
ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT, \
|
||||
ER_THD(((THD *) Thd), ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT), \
|
||||
(Old)); \
|
||||
THD *thd_= ((THD*) Thd); \
|
||||
if (thd_ != NULL) \
|
||||
push_warning_printf(thd_, Sql_condition::WARN_LEVEL_WARN, \
|
||||
ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT, \
|
||||
ER_THD(thd_, ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT), \
|
||||
(Old)); \
|
||||
else \
|
||||
sql_print_warning("'%s' is deprecated and will be removed " \
|
||||
"in a future release.", (Old)); \
|
||||
|
||||
Reference in New Issue
Block a user