Slightly better for gcc-9

This commit is contained in:
Alexey Milovidov 2020-12-21 03:41:22 +03:00
parent 31b955e14a
commit 9c1516bd74

View File

@ -558,7 +558,7 @@ bool ContextAccess::checkAdminOptionImpl2(const Container & role_ids, const GetN
if (!std::size(role_ids) || is_full_access) if (!std::size(role_ids) || is_full_access)
return true; return true;
auto show_error = [this](const String & msg, int error_code) auto show_error = [this](const String & msg, int error_code [[maybe_unused]])
{ {
UNUSED(this); UNUSED(this);
if constexpr (throw_if_denied) if constexpr (throw_if_denied)