mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85156 from tshortli/fallthrough-warning
SIL: Fix a `-Wimplicit-fallthrough` warning
This commit is contained in:
@@ -2550,7 +2550,8 @@ public:
|
||||
case BuiltinValueKind::id: \
|
||||
require(false, \
|
||||
"this builtin should never show up as builtin inst. It should " \
|
||||
"only result in other SIL instructions being emitted by SILGen");
|
||||
"only result in other SIL instructions being emitted by SILGen"); \
|
||||
break;
|
||||
#define BUILTIN(ID, Name, Attrs) \
|
||||
case BuiltinValueKind::ID: \
|
||||
break;
|
||||
|
||||
@@ -681,7 +681,7 @@ enable-new-runtime-build
|
||||
|
||||
# Escalate certain C++ warnings to errors for Swift.
|
||||
extra-swift-cmake-options=
|
||||
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused -Werror=uninitialized"
|
||||
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused -Werror=uninitialized -Werror=implicit-fallthrough"
|
||||
|
||||
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,flto]
|
||||
mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx
|
||||
|
||||
Reference in New Issue
Block a user