diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2019-12-18 14:09:29 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2019-12-18 14:10:23 -0500 |
commit | ac7b1fb10cbc82d04371ee5f6ab406968dcec029 (patch) | |
tree | 093f218725d87e5103c2e8042f1b774edf817515 /lib/strerror.c | |
parent | 23e4d98e7e0e01e79cd39361b23495dfeac4e4c4 (diff) | |
download | curl-ac7b1fb10cbc82d04371ee5f6ab406968dcec029.tar.gz |
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
Diffstat (limited to 'lib/strerror.c')
-rw-r--r-- | lib/strerror.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |