Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From 627ef28748d3ff1c9edfd92d7bfb3a314edd0e62 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Wed, 17 Mar 2021 19:53:36 +0000 >Subject: [PATCH] hdbm.c: add an attribute for a fall through in case > statements Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- hdbm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hdbm.c b/hdbm.c index 1b47644..b5bbf22 100644 --- a/hdbm.c +++ b/hdbm.c @@ -91,18 +91,25 @@ hdbmdef(register HDBMDATUM key) case 0: do { /* All fall throughs */ HASHC; + __attribute__ ((fallthrough)); case 7: HASHC; + __attribute__ ((fallthrough)); case 6: HASHC; + __attribute__ ((fallthrough)); case 5: HASHC; + __attribute__ ((fallthrough)); case 4: HASHC; + __attribute__ ((fallthrough)); case 3: HASHC; + __attribute__ ((fallthrough)); case 2: HASHC; + __attribute__ ((fallthrough)); case 1: HASHC; } while (--loop); -- 2.30.2 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.19-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason