From 55599c4a1ece11d840c869db44e351468786916b Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Tue, 25 Jun 2013 00:00:32 -0500 Subject: coverity #982634 and 5 other : Intentional fallthrough in cases Change-Id: Ie6cfcc32c1ff80dab0f9835524c89d40503f69f0 Reviewed-on: https://gerrit.libreoffice.org/4498 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- sal/rtl/digest.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sal/rtl/digest.cxx') diff --git a/sal/rtl/digest.cxx b/sal/rtl/digest.cxx index e7cd52834f77..75cf20900de0 100644 --- a/sal/rtl/digest.cxx +++ b/sal/rtl/digest.cxx @@ -703,9 +703,13 @@ static void __rtl_digest_endMD5 (DigestContextMD5 *ctx) switch (ctx->m_nDatLen & 0x03) { case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; + /* fallthrough */ case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; + /* fallthrough */ case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; + /* fallthrough */ case 3: X[i] |= ((sal_uInt32)(*p)) << 24L; + /* fallthrough */ } i += 1; @@ -1154,9 +1158,13 @@ static void __rtl_digest_endSHA (DigestContextSHA *ctx) switch (ctx->m_nDatLen & 0x03) { case 0: X[i] = ((sal_uInt32)(*(p++))) << 0L; + /* fallthrough */ case 1: X[i] |= ((sal_uInt32)(*(p++))) << 8L; + /* fallthrough */ case 2: X[i] |= ((sal_uInt32)(*(p++))) << 16L; + /* fallthrough */ case 3: X[i] |= ((sal_uInt32)(*(p++))) << 24L; + /* fallthrough */ } __rtl_digest_swapLong (X, i + 1); -- cgit