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
Attachments
Activity
Fix Version/s | New: Lustre 2.15.1 [ 15891 ] |
Fix Version/s | New: Lustre 2.16.0 [ 15190 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Assignee | Original: WC Triage [ wc-triage ] | New: Shaun Tancheff [ stancheff ] |
"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