diff options
author | Tom Stellard <tstellar@redhat.com> | 2022-05-13 16:58:19 +0000 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-07-24 23:12:34 -0700 |
commit | cd440062ae8955ac2634e61934368574690f8c6e (patch) | |
tree | 12c3358dcb61415b3e26fbf23e28d42556d5a8f2 /memcached.c | |
parent | f7d8dbdab9baacf425fba64f6786fd9f05fd2d5d (diff) | |
download | memcached-cd440062ae8955ac2634e61934368574690f8c6e.tar.gz |
Fix undefined behavior and warning with clang
This fixes a warning from clang about undefined behavior:
error: embedding a directive within macro arguments has undefined behavior [-Werror,-Wembedded-directive]
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/memcached.c b/memcached.c index fd36377..154f2cf 100644 --- a/memcached.c +++ b/memcached.c @@ -4076,15 +4076,14 @@ static void usage(void) { printf(" - ssl_session_cache: enable server-side SSL session cache, to support session\n" " resumption\n" " - ssl_kernel_tls: enable kernel TLS offload\n" - " - ssl_min_version: minimum protocol version to accept (default: %s)\n" + " - ssl_min_version: minimum protocol version to accept (default: %s)\n", + ssl_proto_text(settings.ssl_min_version)); #if defined(TLS1_3_VERSION) - " valid values are 0(%s), 1(%s), 2(%s), or 3(%s).\n", - ssl_proto_text(settings.ssl_min_version), + printf(" valid values are 0(%s), 1(%s), 2(%s), or 3(%s).\n", ssl_proto_text(TLS1_VERSION), ssl_proto_text(TLS1_1_VERSION), ssl_proto_text(TLS1_2_VERSION), ssl_proto_text(TLS1_3_VERSION)); #else - " valid values are 0(%s), 1(%s), or 2(%s).\n", - ssl_proto_text(settings.ssl_min_version), + printf(" valid values are 0(%s), 1(%s), or 2(%s).\n", ssl_proto_text(TLS1_VERSION), ssl_proto_text(TLS1_1_VERSION), ssl_proto_text(TLS1_2_VERSION)); #endif |