165
165
static void *operator new(size_t size, MEM_ROOT *mem_root)
166
166
{ return (void*) alloc_root(mem_root, (uint) size); }
167
static void operator delete(void *ptr_arg,size_t size)
167
static void operator delete(void *ptr_arg __attribute__((__unused__)),
168
size_t size __attribute__((__unused__)))
168
169
{ TRASH(ptr_arg, size); }
170
171
sys_var_pluginvar(const char *name_arg,
180
181
TYPELIB* plugin_var_typelib(void);
181
182
uchar* value_ptr(THD *thd, enum_var_type type, LEX_STRING *base);
182
183
bool check(THD *thd, set_var *var);
183
bool check_default(enum_var_type type) { return is_readonly(); }
184
void set_default(THD *thd, enum_var_type type);
184
bool check_default(enum_var_type type __attribute__((__unused__)))
185
{ return is_readonly(); }
186
void set_default(THD *thd,
187
enum_var_type type __attribute__((__unused__)));
185
188
bool update(THD *thd, set_var *var);
1521
1524
default variable data check and update functions
1522
1525
****************************************************************************/
1524
static int check_func_bool(THD *thd, struct st_mysql_sys_var *var,
1527
static int check_func_bool(THD *thd __attribute__((__unused__)),
1528
struct st_mysql_sys_var *var,
1525
1529
void *save, st_mysql_value *value)
1527
1531
char buff[STRING_BUFFER_USUAL_SIZE];
1619
1623
var->name, (longlong) tmp);
1622
static int check_func_str(THD *thd, struct st_mysql_sys_var *var,
1626
static int check_func_str(THD *thd,
1627
struct st_mysql_sys_var *var __attribute__((__unused__)),
1623
1628
void *save, st_mysql_value *value)
1625
1630
char buff[STRING_BUFFER_USUAL_SIZE];
1637
static int check_func_enum(THD *thd, struct st_mysql_sys_var *var,
1642
static int check_func_enum(THD *thd __attribute__((__unused__)),
1643
struct st_mysql_sys_var *var,
1638
1644
void *save, st_mysql_value *value)
1640
1646
char buff[STRING_BUFFER_USUAL_SIZE];
1683
static int check_func_set(THD *thd, struct st_mysql_sys_var *var,
1689
static int check_func_set(THD *thd __attribute__((__unused__)),
1690
struct st_mysql_sys_var *var,
1684
1691
void *save, st_mysql_value *value)
1686
1693
char buff[STRING_BUFFER_USUAL_SIZE], *error= 0;
1733
static void update_func_bool(THD *thd, struct st_mysql_sys_var *var,
1740
static void update_func_bool(THD *thd __attribute__((__unused__)),
1741
struct st_mysql_sys_var *var __attribute__((__unused__)),
1734
1742
void *tgt, const void *save)
1736
1744
*(my_bool *) tgt= *(int *) save ? 1 : 0;
1740
static void update_func_int(THD *thd, struct st_mysql_sys_var *var,
1748
static void update_func_int(THD *thd __attribute__((__unused__)),
1749
struct st_mysql_sys_var *var __attribute__((__unused__)),
1741
1750
void *tgt, const void *save)
1743
1752
*(int *)tgt= *(int *) save;
1747
static void update_func_long(THD *thd, struct st_mysql_sys_var *var,
1756
static void update_func_long(THD *thd __attribute__((__unused__)),
1757
struct st_mysql_sys_var *var __attribute__((__unused__)),
1748
1758
void *tgt, const void *save)
1750
1760
*(long *)tgt= *(long *) save;
1754
static void update_func_longlong(THD *thd, struct st_mysql_sys_var *var,
1755
void *tgt, const void *save)
1764
static void update_func_longlong(THD *thd __attribute__((__unused__)),
1765
struct st_mysql_sys_var *var __attribute__((__unused__)),
1766
void *tgt, const void *save)
1757
1768
*(longlong *)tgt= *(ulonglong *) save;
1761
static void update_func_str(THD *thd, struct st_mysql_sys_var *var,
1772
static void update_func_str(THD *thd __attribute__((__unused__)), struct st_mysql_sys_var *var,
1762
1773
void *tgt, const void *save)
1764
1775
char *old= *(char **) tgt;
2073
2084
Unlocks all system variables which hold a reference
2075
static void unlock_variables(THD *thd, struct system_variables *vars)
2086
static void unlock_variables(THD *thd __attribute__((__unused__)),
2087
struct system_variables *vars)
2077
2089
intern_plugin_unlock(NULL, vars->table_plugin);
2078
2090
vars->table_plugin= NULL;
2509
2521
my_bool get_one_plugin_option(int optid __attribute__((unused)),
2510
const struct my_option *opt,
2522
const struct my_option *opt __attribute__((__unused__)),
2523
char *argument __attribute__((__unused__)))