From 018fcbec38509cd03fb0709904a382c3bfcf5ed4 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 11 May 2017 16:21:37 +0200 Subject: Fix gcc-7 warnings. - Mostly missing fall thru comments - And uninitialized value used in sslapitest.c Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3440) --- crypto/siphash/siphash.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/siphash/siphash.c') diff --git a/crypto/siphash/siphash.c b/crypto/siphash/siphash.c index 4bf2382972..b00d5889b8 100644 --- a/crypto/siphash/siphash.c +++ b/crypto/siphash/siphash.c @@ -191,16 +191,22 @@ int SipHash_Final(SIPHASH *ctx, unsigned char *out, size_t outlen) switch (ctx->len) { case 7: b |= ((uint64_t)ctx->leavings[6]) << 48; + /* fall thru */ case 6: b |= ((uint64_t)ctx->leavings[5]) << 40; + /* fall thru */ case 5: b |= ((uint64_t)ctx->leavings[4]) << 32; + /* fall thru */ case 4: b |= ((uint64_t)ctx->leavings[3]) << 24; + /* fall thru */ case 3: b |= ((uint64_t)ctx->leavings[2]) << 16; + /* fall thru */ case 2: b |= ((uint64_t)ctx->leavings[1]) << 8; + /* fall thru */ case 1: b |= ((uint64_t)ctx->leavings[0]); case 0: -- cgit v1.2.3