Skip to content

Commit 43fa1d4

Browse files
committed
bin: fix warning when built without SASL
1 parent aa88329 commit 43fa1d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/common/options.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ class client_options {
9595
.apply = [](const client_options &opt, const extended_option &ext, memcached_st *memc) {
9696
if (auto username = ext.arg) {
9797
#if !LIBMEMCACHED_WITH_SASL_SUPPORT
98+
(void) memc;
9899
if (!opt.isset("quiet")) {
99100
std::cerr
100-
<< "SASL username was supplied, but binary was not built with SASL support.\n";
101+
<< "SASL username '" << username << "' was supplied, but binary was not built with SASL support.\n";
101102
}
102103
return false;
103104
#else

0 commit comments

Comments
 (0)