1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

register keyword c++17 warning

This commit is contained in:
Eugene Kosov
2017-12-27 16:03:16 +03:00
committed by Marko Mäkelä
parent 39a4985520
commit 7b2bdd8984
11 changed files with 19 additions and 19 deletions

View File

@@ -3133,7 +3133,7 @@ static int
com_help(String *buffer __attribute__((unused)), com_help(String *buffer __attribute__((unused)),
char *line __attribute__((unused))) char *line __attribute__((unused)))
{ {
reg1 int i, j; int i, j;
char * help_arg= strchr(line,' '), buff[32], *end; char * help_arg= strchr(line,' '), buff[32], *end;
if (help_arg) if (help_arg)
{ {

View File

@@ -2797,7 +2797,7 @@ int Field_decimal::store(double nr)
return 1; return 1;
} }
reg4 uint i; uint i;
size_t length; size_t length;
uchar fyllchar,*to; uchar fyllchar,*to;
char buff[DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE]; char buff[DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE];

View File

@@ -1167,9 +1167,9 @@ Type_handler_real_result::make_sort_key(uchar *to, Item *item,
static void make_sortkey(Sort_param *param, uchar *to, uchar *ref_pos) static void make_sortkey(Sort_param *param, uchar *to, uchar *ref_pos)
{ {
reg3 Field *field; Field *field;
reg1 SORT_FIELD *sort_field; SORT_FIELD *sort_field;
reg5 uint length; uint length;
for (sort_field=param->local_sortorder ; for (sort_field=param->local_sortorder ;
sort_field != param->end ; sort_field != param->end ;
@@ -1258,7 +1258,7 @@ static void make_sortkey(Sort_param *param, uchar *to, uchar *ref_pos)
static void register_used_fields(Sort_param *param) static void register_used_fields(Sort_param *param)
{ {
reg1 SORT_FIELD *sort_field; SORT_FIELD *sort_field;
TABLE *table=param->sort_form; TABLE *table=param->sort_form;
for (sort_field= param->local_sortorder ; for (sort_field= param->local_sortorder ;

View File

@@ -52,8 +52,8 @@
int find_ref_key(KEY *key, uint key_count, uchar *record, Field *field, int find_ref_key(KEY *key, uint key_count, uchar *record, Field *field,
uint *key_length, uint *keypart) uint *key_length, uint *keypart)
{ {
reg2 int i; int i;
reg3 KEY *key_info; KEY *key_info;
uint fieldpos; uint fieldpos;
fieldpos= field->offset(record); fieldpos= field->offset(record);

View File

@@ -378,7 +378,7 @@ end:
static int lock_external(THD *thd, TABLE **tables, uint count) static int lock_external(THD *thd, TABLE **tables, uint count)
{ {
reg1 uint i; uint i;
int lock_type,error; int lock_type,error;
DBUG_ENTER("lock_external"); DBUG_ENTER("lock_external");
@@ -530,7 +530,7 @@ void mysql_lock_remove(THD *thd, MYSQL_LOCK *locked,TABLE *table)
{ {
if (locked) if (locked)
{ {
reg1 uint i; uint i;
for (i=0; i < locked->table_count; i++) for (i=0; i < locked->table_count; i++)
{ {
if (locked->table[i] == table) if (locked->table[i] == table)

View File

@@ -2419,7 +2419,7 @@ static int find_uniq_filename(char *name, ulong next_log_number)
uint i; uint i;
char buff[FN_REFLEN], ext_buf[FN_REFLEN]; char buff[FN_REFLEN], ext_buf[FN_REFLEN];
struct st_my_dir *dir_info; struct st_my_dir *dir_info;
reg1 struct fileinfo *file_info; struct fileinfo *file_info;
ulong max_found, next, UNINIT_VAR(number); ulong max_found, next, UNINIT_VAR(number);
size_t buf_length, length; size_t buf_length, length;
char *start, *end; char *start, *end;
@@ -8482,7 +8482,7 @@ void MYSQL_BIN_LOG::set_max_size(ulong max_size_arg)
static bool test_if_number(const char *str, ulong *res, bool allow_wildcards) static bool test_if_number(const char *str, ulong *res, bool allow_wildcards)
{ {
reg2 int flag; int flag;
const char *start; const char *start;
DBUG_ENTER("test_if_number"); DBUG_ENTER("test_if_number");

View File

@@ -631,7 +631,7 @@ static int init_rr_cache(THD *thd, READ_RECORD *info)
static int rr_from_cache(READ_RECORD *info) static int rr_from_cache(READ_RECORD *info)
{ {
reg1 uint i; uint i;
ulong length; ulong length;
my_off_t rest_of_file; my_off_t rest_of_file;
int16 error; int16 error;

View File

@@ -11346,7 +11346,7 @@ int fill_schema_applicable_roles(THD *thd, TABLE_LIST *tables, COND *cond)
int wild_case_compare(CHARSET_INFO *cs, const char *str,const char *wildstr) int wild_case_compare(CHARSET_INFO *cs, const char *str,const char *wildstr)
{ {
reg3 int flag; int flag;
DBUG_ENTER("wild_case_compare"); DBUG_ENTER("wild_case_compare");
DBUG_PRINT("enter",("str: '%s' wildstr: '%s'",str,wildstr)); DBUG_PRINT("enter",("str: '%s' wildstr: '%s'",str,wildstr));
while (*wildstr) while (*wildstr)

View File

@@ -7014,7 +7014,7 @@ bool setup_fields(THD *thd, Ref_ptr_array ref_pointer_array,
List<Item> *sum_func_list, List<Item> *pre_fix, List<Item> *sum_func_list, List<Item> *pre_fix,
bool allow_sum_func) bool allow_sum_func)
{ {
reg2 Item *item; Item *item;
enum_mark_columns save_mark_used_columns= thd->mark_used_columns; enum_mark_columns save_mark_used_columns= thd->mark_used_columns;
nesting_map save_allow_sum_func= thd->lex->allow_sum_func; nesting_map save_allow_sum_func= thd->lex->allow_sum_func;
List_iterator<Item> it(fields); List_iterator<Item> it(fields);

View File

@@ -1008,7 +1008,7 @@ Lex_input_stream::unescape(CHARSET_INFO *cs, char *to,
bool Lex_input_stream::get_text(LEX_STRING *dst, uint sep, bool Lex_input_stream::get_text(LEX_STRING *dst, uint sep,
int pre_skip, int post_skip) int pre_skip, int post_skip)
{ {
reg1 uchar c; uchar c;
uint found_escape=0; uint found_escape=0;
CHARSET_INFO *cs= m_thd->charset(); CHARSET_INFO *cs= m_thd->charset();
@@ -1188,7 +1188,7 @@ static inline uint int_token(const char *str,uint length)
*/ */
bool consume_comment(Lex_input_stream *lip, int remaining_recursions_permitted) bool consume_comment(Lex_input_stream *lip, int remaining_recursions_permitted)
{ {
reg1 uchar c; uchar c;
while (! lip->eof()) while (! lip->eof())
{ {
c= lip->yyGet(); c= lip->yyGet();
@@ -1286,7 +1286,7 @@ int MYSQLlex(YYSTYPE *yylval, THD *thd)
static int lex_one_token(YYSTYPE *yylval, THD *thd) static int lex_one_token(YYSTYPE *yylval, THD *thd)
{ {
reg1 uchar UNINIT_VAR(c); uchar UNINIT_VAR(c);
bool comment_closed; bool comment_closed;
int tokval, result_state; int tokval, result_state;
uint length; uint length;

View File

@@ -427,7 +427,7 @@ static bool send_prep_stmt(Prepared_statement *stmt,
static ulong get_param_length(uchar **packet, ulong len) static ulong get_param_length(uchar **packet, ulong len)
{ {
reg1 uchar *pos= *packet; uchar *pos= *packet;
if (len < 1) if (len < 1)
return 0; return 0;
if (*pos < 251) if (*pos < 251)