From ac7b1fb10cbc82d04371ee5f6ab406968dcec029 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 18 Dec 2019 14:09:29 -0500 Subject: strerror: Fix compiler warning "empty expression" - Remove the final semi-colon in the SEC2TXT() macro definition. Before: #define SEC2TXT(sec) case sec: txt = #sec; break; After: #define SEC2TXT(sec) case sec: txt = #sec; break Prior to this change SEC2TXT(foo); would generate break;; which caused the empty expression warning. Ref: https://github.com/curl/curl/commit/5b22e1a#r36458547 --- lib/strerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/strerror.c') diff --git a/lib/strerror.c b/lib/strerror.c index 7bdd42dd2..f4f5a93a4 100644 --- a/lib/strerror.c +++ b/lib/strerror.c @@ -872,7 +872,7 @@ const char *Curl_sspi_strerror(int err, char *buf, size_t buflen) case SEC_E_OK: txt = "No error"; break; -#define SEC2TXT(sec) case sec: txt = #sec; break; +#define SEC2TXT(sec) case sec: txt = #sec; break SEC2TXT(CRYPT_E_REVOKED); SEC2TXT(SEC_E_ALGORITHM_MISMATCH); SEC2TXT(SEC_E_BAD_BINDINGS); -- cgit v1.2.3