summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Norbye <trond.norbye@gmail.com>2011-08-08 22:15:13 +0200
committerTrond Norbye <trond.norbye@gmail.com>2011-08-08 22:15:13 +0200
commit67590c2101bf6939a80032b1a038135d40f8ea69 (patch)
treed010cd7cde48b3d99857d3bb60286cb97a04f342
parent8dd376a58c510d9f132da39c7604a2258c60e541 (diff)
downloadmemcached-67590c2101bf6939a80032b1a038135d40f8ea69.tar.gz
Fix compilation warning when compiling without SASL support
We're calling exit() if the source isn't built with SASL support if the user tries to use the -S command line argument (causing some compilers to emit warnings about statement never reached)
-rw-r--r--daemon/memcached.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/memcached.c b/daemon/memcached.c
index 441551d..8e0bedd 100644
--- a/daemon/memcached.c
+++ b/daemon/memcached.c
@@ -7178,8 +7178,9 @@ int main (int argc, char **argv) {
settings.extensions.logger->log(EXTENSION_LOG_WARNING, NULL,
"This server is not built with SASL support.\n");
exit(EX_USAGE);
-#endif
+#else
settings.require_sasl = true;
+#endif
break;
case 'X' :
{