Skip to content

Commit

Permalink
bin: fix warning when built without SASL
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Feb 2, 2022
1 parent aa88329 commit 43fa1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/common/options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ class client_options {
.apply = [](const client_options &opt, const extended_option &ext, memcached_st *memc) {
if (auto username = ext.arg) {
#if !LIBMEMCACHED_WITH_SASL_SUPPORT
(void) memc;
if (!opt.isset("quiet")) {
std::cerr
<< "SASL username was supplied, but binary was not built with SASL support.\n";
<< "SASL username '" << username << "' was supplied, but binary was not built with SASL support.\n";
}
return false;
#else
Expand Down

0 comments on commit 43fa1d4

Please sign in to comment.