1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

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
This commit is contained in:
Gisle Vanem 2019-12-18 14:09:29 -05:00 committed by Jay Satiro
parent 23e4d98e7e
commit ac7b1fb10c

View File

@ -872,7 +872,7 @@ const char *Curl_sspi_strerror(int err, char *buf, size_t buflen)
case SEC_E_OK: case SEC_E_OK:
txt = "No error"; txt = "No error";
break; break;
#define SEC2TXT(sec) case sec: txt = #sec; break; #define SEC2TXT(sec) case sec: txt = #sec; break
SEC2TXT(CRYPT_E_REVOKED); SEC2TXT(CRYPT_E_REVOKED);
SEC2TXT(SEC_E_ALGORITHM_MISMATCH); SEC2TXT(SEC_E_ALGORITHM_MISMATCH);
SEC2TXT(SEC_E_BAD_BINDINGS); SEC2TXT(SEC_E_BAD_BINDINGS);