From cbff751e9597b66a50b23491569865fe39682031 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 28 Feb 2017 22:45:28 +0100 Subject: 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 --- lib/vtls/openssl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/vtls') 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", -- cgit v1.2.3