Skip to content

Commit cc71e75

Browse files
committed
post-merge: -Werror fixes in 10.2
1 parent f2a0c75 commit cc71e75

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

cmake/mariadb_connector_c.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,8 @@ SET(CLIENT_PLUGIN_PVIO_SOCKET STATIC)
3737

3838
MESSAGE("== Configuring MariaDB Connector/C")
3939
ADD_SUBDIRECTORY(libmariadb)
40+
41+
#remove after merging libmariadb > v3.0.9
42+
IF(TARGET caching_sha2_password AND CMAKE_C_FLAGS_DEBUG MATCHES "-Werror")
43+
SET_PROPERTY(TARGET caching_sha2_password APPEND_STRING PROPERTY COMPILE_FLAGS -Wno-unused-function)
44+
ENDIF()

sql/spatial.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,17 @@ int Geometry::as_wkt(String *wkt, const char **end)
238238

239239

240240
static const uchar type_keyname[]= "type";
241-
static const int type_keyname_len= 4;
241+
static const uint type_keyname_len= 4;
242242
static const uchar coord_keyname[]= "coordinates";
243-
static const int coord_keyname_len= 11;
243+
static const uint coord_keyname_len= 11;
244244
static const uchar geometries_keyname[]= "geometries";
245-
static const int geometries_keyname_len= 10;
245+
static const uint geometries_keyname_len= 10;
246246
static const uchar features_keyname[]= "features";
247-
static const int features_keyname_len= 8;
247+
static const uint features_keyname_len= 8;
248248
static const uchar geometry_keyname[]= "geometry";
249-
static const int geometry_keyname_len= 8;
249+
static const uint geometry_keyname_len= 8;
250250

251-
static const int max_keyname_len= 11; /*'coordinates' keyname is the longest.*/
251+
static const uint max_keyname_len= 11; /*'coordinates' keyname is the longest.*/
252252

253253
static const uchar feature_type[]= "feature";
254254
static const int feature_type_len= 7;

storage/innobase/buf/buf0dump.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ buf_dump(
392392
if (SHUTTING_DOWN() && !(j % 1024)) {
393393
service_manager_extend_timeout(INNODB_EXTEND_TIMEOUT_INTERVAL,
394394
"Dumping buffer pool "
395-
ULINTPF "/" ULINTPF ", "
395+
ULINTPF "/%lu, "
396396
"page " ULINTPF "/" ULINTPF,
397397
i + 1, srv_buf_pool_instances,
398398
j + 1, n_pages);

strings/json_lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state)
14091409
if (!json_key_matches(je, &key_name))
14101410
continue;
14111411
}
1412-
if (cur_step - state->paths[p_c].last_step == state->cur_depth)
1412+
if (cur_step == state->paths[p_c].last_step + state->cur_depth)
14131413
path_found= TRUE;
14141414
else
14151415
{
@@ -1442,7 +1442,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state)
14421442
cur_step->n_item == state->array_counters[state->cur_depth])
14431443
{
14441444
/* Array item matches. */
1445-
if (cur_step - state->paths[p_c].last_step == state->cur_depth)
1445+
if (cur_step == state->paths[p_c].last_step + state->cur_depth)
14461446
path_found= TRUE;
14471447
else
14481448
{

0 commit comments

Comments
 (0)