diff options
author | Trond Norbye <trond.norbye@gmail.com> | 2011-08-08 22:15:13 +0200 |
---|---|---|
committer | Trond Norbye <trond.norbye@gmail.com> | 2011-08-08 22:15:13 +0200 |
commit | 67590c2101bf6939a80032b1a038135d40f8ea69 (patch) | |
tree | d010cd7cde48b3d99857d3bb60286cb97a04f342 /daemon | |
parent | 8dd376a58c510d9f132da39c7604a2258c60e541 (diff) | |
download | memcached-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)
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/memcached.c | 3 |
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' : { |