Whamcloud - gitweb
LU-15492 build: fallthrough macro for pre/post gcc-7 57/46357/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 28 Jan 2022 07:56:33 +0000 (01:56 -0600)
committerShaun Tancheff <shaun.tancheff@hpe.com>
Wed, 16 Feb 2022 09:11:48 +0000 (03:11 -0600)
commit48145f2eaed1537506bfffb1c0a44a8cfdb38254
tree62599439a5f57669e687d2a13d48bec8c2652225
parent450d10c3625841f0f71b63cb02e6cca070e1b912
LU-15492 build: fallthrough macro for pre/post gcc-7

gcc-7.5 on openSUSE 15:
   error: this statement may fall through [-Werror=implicit-fallthrough=]

Use the __attribute__((fallthrough)) for gcc-7 and later.
and use a no op statement for earlier gcc where the fallthrough
attribute is not available.

Test-Parameters: trivial
Fixes: 5549b1b9e0 ("LU-15220 lustre: use 'fallthrough' pseudo keyword for switch")
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ib72f5996149c738805f15e354e1e1606d981ce29
lnet/include/lnet/lib-lnet.h
lustre/include/lustre/lustreapi.h
lustre/include/lustre_compat.h
lustre/utils/gss/gss_util.h