From 9753dfd2c2bcd13ff031bb7c9a4300842bcb9710 Mon Sep 17 00:00:00 2001 From: Phenom Date: Sat, 15 Jul 2017 10:46:32 +0200 Subject: [PATCH] Fix warning: this statement may fall through /openpgpsdk/src/openpgpsdk/packet-parse.c:2482: warning: this statement may fall through [-Wimplicit-fallthrough=] hashes[n].add(&hashes[n],C.secret_key.salt,OPS_SALT_SIZE); /openpgpsdk/src/openpgpsdk/packet-parse.c:2484: here case OPS_S2KS_SIMPLE: --- src/openpgpsdk/packet-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpgpsdk/packet-parse.c b/src/openpgpsdk/packet-parse.c index c814bf8..e641eae 100644 --- a/src/openpgpsdk/packet-parse.c +++ b/src/openpgpsdk/packet-parse.c @@ -2480,7 +2480,7 @@ static int parse_secret_key(ops_region_t *region,ops_parse_info_t *pinfo) { case OPS_S2KS_SALTED: hashes[n].add(&hashes[n],C.secret_key.salt,OPS_SALT_SIZE); - // flow through... + /* fallthrough */ case OPS_S2KS_SIMPLE: hashes[n].add(&hashes[n],(unsigned char*)passphrase,l); break;