Skip to content
Snippets Groups Projects
Unverified Commit 2afbe263 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Alexander Turenko
Browse files

build: fix warning re comparison of enum and uint


The warning is observed when tarantool is compiled by GCC 9.1.0.

Warnings are treated as errors during a debug build or when
-DENABLE_WERROR=ON option is passed to cmake, that is usual for our
testing jobs in CI.

The commit that introduces the problem is
3a8adccf ('access: fix invalid error
type for not found user').

Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
parent 6c01ca48
No related branches found
No related tags found
No related merge requests found
...@@ -530,7 +530,7 @@ user_find_by_name(const char *name, uint32_t len) ...@@ -530,7 +530,7 @@ user_find_by_name(const char *name, uint32_t len)
return user; return user;
} }
diag_set(ClientError, ER_NO_SUCH_USER, diag_set(ClientError, ER_NO_SUCH_USER,
tt_cstr(name, MIN(BOX_INVALID_NAME_MAX, len))); tt_cstr(name, MIN((uint32_t) BOX_INVALID_NAME_MAX, len)));
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment