From 43fa1d415799c1b15de6381fc3b53281e4559f36 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 2 Feb 2022 08:21:47 +0100 Subject: [PATCH] bin: fix warning when built without SASL --- src/bin/common/options.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/common/options.hpp b/src/bin/common/options.hpp index 79dd2d64..93275b33 100644 --- a/src/bin/common/options.hpp +++ b/src/bin/common/options.hpp @@ -95,9 +95,10 @@ public: .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 -- 2.30.2