Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
Using the new fallthrough macro, building on openSUSE 15 with gcc-7.5
error: this statement may fall through [-Werror=implicit-fallthrough=]
Where the fallthrough attribute is available prefer it over a no-op suppression of
the implicit fallthrough warning.
Ex:
# if defined(__GNUC__) && __GNUC__ >= 7 # define fallthrough __attribute__((fallthrough)) /* fallthrough */ # else # define fallthrough do {} while (0) /* fallthrough */ # endif
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47708/
Subject:
LU-15492build: fallthrough macro for pre/post gcc-7Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 2fd2a6fb7f6935624d327e8bfe25dd3955066429