]> arthur.barton.de Git - ngircd-alex.git/commit
Annotate "fall through" cases to silence warnings
authorAlexander Barton <alex@barton.de>
Thu, 18 Jan 2024 21:41:39 +0000 (22:41 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 18 Jan 2024 21:49:48 +0000 (22:49 +0100)
commitc83d55f75884130367f9d3f4db262bccb2049abe
treef57906d663942c263f074634f2a073c97f714cd5
parent1d527eaf17435089e70b530955e271bbd0440fe4
Annotate "fall through" cases to silence warnings

Add a "/* fall through */" annotation to "case" statements which
actually should "fall through" to silences GCC warning like this:

  hash.c: In function â€˜jenkins_hash’:
  hash.c:110:27: warning: this statement may fall through
                 [-Wimplicit-fallthrough=]
    110 |                 case 12: c+=((UINT32)k[11])<<24;
        |                          ~^~~~~~~~~~~~~~~~~~~~~
src/ngircd/hash.c
src/ngircd/irc-info.c
src/ngircd/irc-mode.c