Commit 22ebf3cb authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-9527 build FAILs with GCC 5.1 with release supported "-std=c+11"

10.0 part of the fix
parent 98ea8062
...@@ -6274,7 +6274,7 @@ fts_fake_hex_to_dec( ...@@ -6274,7 +6274,7 @@ fts_fake_hex_to_dec(
#ifdef _WIN32 #ifdef _WIN32
ret = sscanf(tmp_id, "%016llu", &dec_id); ret = sscanf(tmp_id, "%016llu", &dec_id);
#else #else
ret = sscanf(tmp_id, "%016"PRIu64, &dec_id); ret = sscanf(tmp_id, "%016" PRIu64, &dec_id);
#endif /* _WIN32 */ #endif /* _WIN32 */
ut_ad(ret == 1); ut_ad(ret == 1);
......
...@@ -53,7 +53,7 @@ fts_write_object_id( ...@@ -53,7 +53,7 @@ fts_write_object_id(
/* Use this to construct old(5.6.14 and 5.7.3) windows /* Use this to construct old(5.6.14 and 5.7.3) windows
ambiguous aux table names */ ambiguous aux table names */
DBUG_EXECUTE_IF("innodb_test_wrong_windows_fts_aux_table_name", DBUG_EXECUTE_IF("innodb_test_wrong_windows_fts_aux_table_name",
return(sprintf(str, "%016"PRIu64, id));); return(sprintf(str, "%016" PRIu64, id)););
DBUG_EXECUTE_IF("innodb_test_wrong_fts_aux_table_name", DBUG_EXECUTE_IF("innodb_test_wrong_fts_aux_table_name",
return(sprintf(str, UINT64PFx, id));); return(sprintf(str, UINT64PFx, id)););
...@@ -66,7 +66,7 @@ fts_write_object_id( ...@@ -66,7 +66,7 @@ fts_write_object_id(
// FIXME: Use ut_snprintf(), so does following one. // FIXME: Use ut_snprintf(), so does following one.
return(sprintf(str, "%016llu", id)); return(sprintf(str, "%016llu", id));
#else /* _WIN32 */ #else /* _WIN32 */
return(sprintf(str, "%016"PRIu64, id)); return(sprintf(str, "%016" PRIu64, id));
#endif /* _WIN32 */ #endif /* _WIN32 */
} }
......
...@@ -272,7 +272,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length, ...@@ -272,7 +272,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length,
#define MRN_PARAM_STR(title_name, param_name) \ #define MRN_PARAM_STR(title_name, param_name) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info", ("mroonga "title_name" start")); \ DBUG_PRINT("info", ("mroonga " title_name " start")); \
if (!share->param_name) \ if (!share->param_name) \
{ \ { \
if ((share->param_name = mrn_get_string_between_quote( \ if ((share->param_name = mrn_get_string_between_quote( \
...@@ -284,7 +284,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length, ...@@ -284,7 +284,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length,
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info", ("mroonga "title_name"=%s", share->param_name)); \ DBUG_PRINT("info", ("mroonga " title_name "=%s", share->param_name)); \
} \ } \
break; \ break; \
} }
...@@ -292,7 +292,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length, ...@@ -292,7 +292,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length,
#define MRN_PARAM_STR_LIST(title_name, param_name, param_pos) \ #define MRN_PARAM_STR_LIST(title_name, param_name, param_pos) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info", ("mroonga "title_name" start")); \ DBUG_PRINT("info", ("mroonga " title_name " start")); \
if (share->param_name && !share->param_name[param_pos]) \ if (share->param_name && !share->param_name[param_pos]) \
{ \ { \
if ((share->param_name[param_pos] = mrn_get_string_between_quote( \ if ((share->param_name[param_pos] = mrn_get_string_between_quote( \
...@@ -305,7 +305,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length, ...@@ -305,7 +305,7 @@ void mrn_get_partition_info(const char *table_name, uint table_name_length,
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info", ("mroonga "title_name"[%d]=%s", param_pos, \ DBUG_PRINT("info", ("mroonga " title_name "[%d]=%s", param_pos, \
share->param_name[param_pos])); \ share->param_name[param_pos])); \
} \ } \
break; \ break; \
......
...@@ -1036,11 +1036,11 @@ int stack_cursor::fetch_row(const row &row_info, row &result, ...@@ -1036,11 +1036,11 @@ int stack_cursor::fetch_row(const row &row_info, row &result,
optional<EdgeWeight> w; optional<EdgeWeight> w;
optional<Vertex> v; optional<Vertex> v;
result= row_info; result= row_info;
if ((result.seq_indicator= seq= last.sequence())) if ((result.seq_indicator= static_cast<bool>(seq= last.sequence())))
result.seq= *seq; result.seq= *seq;
if ((result.link_indicator= v= last.vertex())) if ((result.link_indicator= static_cast<bool>(v= last.vertex())))
result.link= get(boost::vertex_index, share->g, *v); result.link= get(boost::vertex_index, share->g, *v);
if ((result.weight_indicator= w= last.weight())) if ((result.weight_indicator= static_cast<bool>(w= last.weight())))
result.weight= *w; result.weight= *w;
return oqgraph::OK; return oqgraph::OK;
} }
......
...@@ -81,7 +81,7 @@ int spider_udf_set_copy_tables_param_default( ...@@ -81,7 +81,7 @@ int spider_udf_set_copy_tables_param_default(
#define SPIDER_PARAM_STR(title_name, param_name) \ #define SPIDER_PARAM_STR(title_name, param_name) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!copy_tables->param_name) \ if (!copy_tables->param_name) \
{ \ { \
if ((copy_tables->param_name = spider_get_string_between_quote( \ if ((copy_tables->param_name = spider_get_string_between_quote( \
...@@ -94,14 +94,14 @@ int spider_udf_set_copy_tables_param_default( ...@@ -94,14 +94,14 @@ int spider_udf_set_copy_tables_param_default(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%s", copy_tables->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%s", copy_tables->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_HINT_WITH_MAX(title_name, param_name, check_length, max_size, min_val, max_val) \ #define SPIDER_PARAM_HINT_WITH_MAX(title_name, param_name, check_length, max_size, min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, check_length)) \ if (!strncasecmp(tmp_ptr, title_name, check_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
DBUG_PRINT("info",("spider max_size=%d", max_size)); \ DBUG_PRINT("info",("spider max_size=%d", max_size)); \
int hint_num = atoi(tmp_ptr + check_length) - 1; \ int hint_num = atoi(tmp_ptr + check_length) - 1; \
DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \ DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \
...@@ -131,7 +131,7 @@ int spider_udf_set_copy_tables_param_default( ...@@ -131,7 +131,7 @@ int spider_udf_set_copy_tables_param_default(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"[%d]=%d", hint_num, \ DBUG_PRINT("info",("spider " title_name "[%d]=%d", hint_num, \
copy_tables->param_name[hint_num])); \ copy_tables->param_name[hint_num])); \
} else { \ } else { \
error_num = ER_SPIDER_INVALID_UDF_PARAM_NUM; \ error_num = ER_SPIDER_INVALID_UDF_PARAM_NUM; \
...@@ -144,7 +144,7 @@ int spider_udf_set_copy_tables_param_default( ...@@ -144,7 +144,7 @@ int spider_udf_set_copy_tables_param_default(
#define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \ #define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (copy_tables->param_name == -1) \ if (copy_tables->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -161,14 +161,14 @@ int spider_udf_set_copy_tables_param_default( ...@@ -161,14 +161,14 @@ int spider_udf_set_copy_tables_param_default(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", copy_tables->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%d", copy_tables->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_INT(title_name, param_name, min_val) \ #define SPIDER_PARAM_INT(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (copy_tables->param_name == -1) \ if (copy_tables->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -183,14 +183,14 @@ int spider_udf_set_copy_tables_param_default( ...@@ -183,14 +183,14 @@ int spider_udf_set_copy_tables_param_default(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", copy_tables->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%d", copy_tables->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \ #define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (copy_tables->param_name == -1) \ if (copy_tables->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -206,7 +206,7 @@ int spider_udf_set_copy_tables_param_default( ...@@ -206,7 +206,7 @@ int spider_udf_set_copy_tables_param_default(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%lld", \ DBUG_PRINT("info",("spider " title_name "=%lld", \
copy_tables->param_name)); \ copy_tables->param_name)); \
} \ } \
break; \ break; \
......
...@@ -896,7 +896,7 @@ error: ...@@ -896,7 +896,7 @@ error:
#define SPIDER_PARAM_STR(title_name, param_name) \ #define SPIDER_PARAM_STR(title_name, param_name) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!direct_sql->param_name) \ if (!direct_sql->param_name) \
{ \ { \
if ((direct_sql->param_name = spider_get_string_between_quote( \ if ((direct_sql->param_name = spider_get_string_between_quote( \
...@@ -909,14 +909,14 @@ error: ...@@ -909,14 +909,14 @@ error:
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%s", direct_sql->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%s", direct_sql->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_HINT_WITH_MAX(title_name, param_name, check_length, max_size, min_val, max_val) \ #define SPIDER_PARAM_HINT_WITH_MAX(title_name, param_name, check_length, max_size, min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, check_length)) \ if (!strncasecmp(tmp_ptr, title_name, check_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
DBUG_PRINT("info",("spider max_size=%d", max_size)); \ DBUG_PRINT("info",("spider max_size=%d", max_size)); \
int hint_num = atoi(tmp_ptr + check_length) - 1; \ int hint_num = atoi(tmp_ptr + check_length) - 1; \
DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \ DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \
...@@ -946,7 +946,7 @@ error: ...@@ -946,7 +946,7 @@ error:
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"[%d]=%d", hint_num, \ DBUG_PRINT("info",("spider " title_name "[%d]=%d", hint_num, \
direct_sql->param_name[hint_num])); \ direct_sql->param_name[hint_num])); \
} else { \ } else { \
error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \ error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \
...@@ -959,7 +959,7 @@ error: ...@@ -959,7 +959,7 @@ error:
#define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \ #define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (direct_sql->param_name == -1) \ if (direct_sql->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -976,7 +976,7 @@ error: ...@@ -976,7 +976,7 @@ error:
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", \ DBUG_PRINT("info",("spider " title_name "=%d", \
(int) direct_sql->param_name)); \ (int) direct_sql->param_name)); \
} \ } \
break; \ break; \
...@@ -984,7 +984,7 @@ error: ...@@ -984,7 +984,7 @@ error:
#define SPIDER_PARAM_INT(title_name, param_name, min_val) \ #define SPIDER_PARAM_INT(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (direct_sql->param_name == -1) \ if (direct_sql->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -999,14 +999,14 @@ error: ...@@ -999,14 +999,14 @@ error:
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", direct_sql->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%d", direct_sql->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \ #define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (direct_sql->param_name == -1) \ if (direct_sql->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1022,7 +1022,7 @@ error: ...@@ -1022,7 +1022,7 @@ error:
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%lld", \ DBUG_PRINT("info",("spider " title_name "=%lld", \
direct_sql->param_name)); \ direct_sql->param_name)); \
} \ } \
break; \ break; \
......
...@@ -1500,7 +1500,7 @@ static int spider_set_ll_value( ...@@ -1500,7 +1500,7 @@ static int spider_set_ll_value(
#define SPIDER_PARAM_STR(title_name, param_name) \ #define SPIDER_PARAM_STR(title_name, param_name) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!share->param_name) \ if (!share->param_name) \
{ \ { \
if ((share->param_name = spider_get_string_between_quote( \ if ((share->param_name = spider_get_string_between_quote( \
...@@ -1512,7 +1512,7 @@ static int spider_set_ll_value( ...@@ -1512,7 +1512,7 @@ static int spider_set_ll_value(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%s", share->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%s", share->param_name)); \
} \ } \
break; \ break; \
} }
...@@ -1521,7 +1521,7 @@ static int spider_set_ll_value( ...@@ -1521,7 +1521,7 @@ static int spider_set_ll_value(
#define SPIDER_PARAM_STR_LIST(title_name, param_name) \ #define SPIDER_PARAM_STR_LIST(title_name, param_name) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!share->param_name) \ if (!share->param_name) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1547,7 +1547,7 @@ static int spider_set_ll_value( ...@@ -1547,7 +1547,7 @@ static int spider_set_ll_value(
#define SPIDER_PARAM_HINT(title_name, param_name, check_length, max_size, append_method) \ #define SPIDER_PARAM_HINT(title_name, param_name, check_length, max_size, append_method) \
if (!strncasecmp(tmp_ptr, title_name, check_length)) \ if (!strncasecmp(tmp_ptr, title_name, check_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
DBUG_PRINT("info",("spider max_size=%d", max_size)); \ DBUG_PRINT("info",("spider max_size=%d", max_size)); \
int hint_num = atoi(tmp_ptr + check_length); \ int hint_num = atoi(tmp_ptr + check_length); \
DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \ DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \
...@@ -1566,7 +1566,7 @@ static int spider_set_ll_value( ...@@ -1566,7 +1566,7 @@ static int spider_set_ll_value(
if ((error_num = \ if ((error_num = \
append_method(&share->param_name[hint_num], hint_str))) \ append_method(&share->param_name[hint_num], hint_str))) \
goto error; \ goto error; \
DBUG_PRINT("info",("spider "title_name"[%d]=%s", hint_num, \ DBUG_PRINT("info",("spider " title_name "[%d]=%s", hint_num, \
share->param_name[hint_num].ptr())); \ share->param_name[hint_num].ptr())); \
} else { \ } else { \
error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \ error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \
...@@ -1579,7 +1579,7 @@ static int spider_set_ll_value( ...@@ -1579,7 +1579,7 @@ static int spider_set_ll_value(
#define SPIDER_PARAM_NUMHINT(title_name, param_name, check_length, max_size, append_method) \ #define SPIDER_PARAM_NUMHINT(title_name, param_name, check_length, max_size, append_method) \
if (!strncasecmp(tmp_ptr, title_name, check_length)) \ if (!strncasecmp(tmp_ptr, title_name, check_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
DBUG_PRINT("info",("spider max_size=%d", max_size)); \ DBUG_PRINT("info",("spider max_size=%d", max_size)); \
int hint_num = atoi(tmp_ptr + check_length); \ int hint_num = atoi(tmp_ptr + check_length); \
DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \ DBUG_PRINT("info",("spider hint_num=%d", hint_num)); \
...@@ -1598,7 +1598,7 @@ static int spider_set_ll_value( ...@@ -1598,7 +1598,7 @@ static int spider_set_ll_value(
if ((error_num = \ if ((error_num = \
append_method(&share->param_name[hint_num], hint_str))) \ append_method(&share->param_name[hint_num], hint_str))) \
goto error; \ goto error; \
DBUG_PRINT("info",("spider "title_name"[%d]=%lld", hint_num, \ DBUG_PRINT("info",("spider " title_name "[%d]=%lld", hint_num, \
share->param_name[hint_num])); \ share->param_name[hint_num])); \
} else { \ } else { \
error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \ error_num = ER_SPIDER_INVALID_CONNECT_INFO_NUM; \
...@@ -1613,7 +1613,7 @@ static int spider_set_ll_value( ...@@ -1613,7 +1613,7 @@ static int spider_set_ll_value(
min_val, max_val) \ min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!share->param_name) \ if (!share->param_name) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1640,7 +1640,7 @@ static int spider_set_ll_value( ...@@ -1640,7 +1640,7 @@ static int spider_set_ll_value(
min_val, max_val) \ min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (!share->param_name) \ if (!share->param_name) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1665,7 +1665,7 @@ static int spider_set_ll_value( ...@@ -1665,7 +1665,7 @@ static int spider_set_ll_value(
#define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \ #define SPIDER_PARAM_INT_WITH_MAX(title_name, param_name, min_val, max_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (share->param_name == -1) \ if (share->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1682,14 +1682,14 @@ static int spider_set_ll_value( ...@@ -1682,14 +1682,14 @@ static int spider_set_ll_value(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", share->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%d", share->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_INT(title_name, param_name, min_val) \ #define SPIDER_PARAM_INT(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (share->param_name == -1) \ if (share->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1704,14 +1704,14 @@ static int spider_set_ll_value( ...@@ -1704,14 +1704,14 @@ static int spider_set_ll_value(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%d", share->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%d", share->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_DOUBLE(title_name, param_name, min_val) \ #define SPIDER_PARAM_DOUBLE(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (share->param_name == -1) \ if (share->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1726,14 +1726,14 @@ static int spider_set_ll_value( ...@@ -1726,14 +1726,14 @@ static int spider_set_ll_value(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%f", share->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%f", share->param_name)); \
} \ } \
break; \ break; \
} }
#define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \ #define SPIDER_PARAM_LONGLONG(title_name, param_name, min_val) \
if (!strncasecmp(tmp_ptr, title_name, title_length)) \ if (!strncasecmp(tmp_ptr, title_name, title_length)) \
{ \ { \
DBUG_PRINT("info",("spider "title_name" start")); \ DBUG_PRINT("info",("spider " title_name " start")); \
if (share->param_name == -1) \ if (share->param_name == -1) \
{ \ { \
if ((tmp_ptr2 = spider_get_string_between_quote( \ if ((tmp_ptr2 = spider_get_string_between_quote( \
...@@ -1748,7 +1748,7 @@ static int spider_set_ll_value( ...@@ -1748,7 +1748,7 @@ static int spider_set_ll_value(
MYF(0), tmp_ptr); \ MYF(0), tmp_ptr); \
goto error; \ goto error; \
} \ } \
DBUG_PRINT("info",("spider "title_name"=%lld", share->param_name)); \ DBUG_PRINT("info",("spider " title_name "=%lld", share->param_name)); \
} \ } \
break; \ break; \
} }
......
...@@ -6274,7 +6274,7 @@ fts_fake_hex_to_dec( ...@@ -6274,7 +6274,7 @@ fts_fake_hex_to_dec(
#ifdef _WIN32 #ifdef _WIN32
ret = sscanf(tmp_id, "%016llu", &dec_id); ret = sscanf(tmp_id, "%016llu", &dec_id);
#else #else
ret = sscanf(tmp_id, "%016"PRIu64, &dec_id); ret = sscanf(tmp_id, "%016" PRIu64, &dec_id);
#endif /* _WIN32 */ #endif /* _WIN32 */
ut_ad(ret == 1); ut_ad(ret == 1);
......
...@@ -53,7 +53,7 @@ fts_write_object_id( ...@@ -53,7 +53,7 @@ fts_write_object_id(
/* Use this to construct old(5.6.14 and 5.7.3) windows /* Use this to construct old(5.6.14 and 5.7.3) windows
ambiguous aux table names */ ambiguous aux table names */
DBUG_EXECUTE_IF("innodb_test_wrong_windows_fts_aux_table_name", DBUG_EXECUTE_IF("innodb_test_wrong_windows_fts_aux_table_name",
return(sprintf(str, "%016"PRIu64, id));); return(sprintf(str, "%016" PRIu64, id)););
DBUG_EXECUTE_IF("innodb_test_wrong_fts_aux_table_name", DBUG_EXECUTE_IF("innodb_test_wrong_fts_aux_table_name",
return(sprintf(str, UINT64PFx, id));); return(sprintf(str, UINT64PFx, id)););
...@@ -66,7 +66,7 @@ fts_write_object_id( ...@@ -66,7 +66,7 @@ fts_write_object_id(
// FIXME: Use ut_snprintf(), so does following one. // FIXME: Use ut_snprintf(), so does following one.
return(sprintf(str, "%016llu", id)); return(sprintf(str, "%016llu", id));
#else /* _WIN32 */ #else /* _WIN32 */
return(sprintf(str, "%016"PRIu64, id)); return(sprintf(str, "%016" PRIu64, id));
#endif /* _WIN32 */ #endif /* _WIN32 */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment