Skip to content

Commit 811e687

Browse files
author
Tor Didriksen
committed
Bug#27660330 ADD SUPPORT FOR CLANG UBSAN bool system variables
Use 'bool' rather than 'char' for boolean system variables. runtime error: call to function mysql_sys_var_bool(THD*, int) through pointer to incorrect function type 'char *(*)(THD *, int)' sql/sql_plugin.cc:2733: note: mysql_sys_var_bool(THD*, int) defined here Change-Id: Ie712ed9be7134cf349f7ea236353849013a313e9
1 parent 14a5b23 commit 811e687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/mysql/plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ typedef void (*mysql_var_update_func)(MYSQL_THD thd, SYS_VAR *var,
468468
blk}
469469

470470
#define MYSQL_THDVAR_BOOL(name, opt, comment, check, update, def) \
471-
DECLARE_MYSQL_THDVAR_BASIC(name, char) = { \
471+
DECLARE_MYSQL_THDVAR_BASIC(name, bool) = { \
472472
PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt)&PLUGIN_VAR_MASK), \
473473
#name, \
474474
comment, \

0 commit comments

Comments
 (0)