diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-02-28 22:45:28 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-03-03 03:09:46 -0500 |
commit | cbff751e9597b66a50b23491569865fe39682031 (patch) | |
tree | 2c0e41a225f8bc2bfa341a6ee5607fcc1dea2d41 /lib/vtls | |
parent | 6fc91f6d3af1d9976cdba8e6d757d56b1c8d3b54 (diff) |
build: fix gcc7 implicit fallthrough warnings
Mark intended fallthroughs with /* FALLTHROUGH */ so that gcc will know
it's expected and won't warn on [-Wimplicit-fallthrough=].
Closes https://github.com/curl/curl/pull/1297
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/openssl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index eb625fe93..20626fec9 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -539,6 +539,7 @@ int cert_stuff(struct connectdata *conn, if(!key_file) /* cert & key can only be in PEM case in the same file */ key_file=cert_file; + /* FALLTHROUGH */ case SSL_FILETYPE_ASN1: if(SSL_CTX_use_PrivateKey_file(ctx, key_file, file_type) != 1) { failf(data, "unable to set private key file: '%s' type %s", |