Skip to content

Commit a6ec4a9

Browse files
Merge pull request #84034 from swiftlang/jepa-main3
[presets] Escalate `uninitialized` warnings to errors in macOS smoke test
2 parents 6da0964 + c720989 commit a6ec4a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Sema/MiscDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6808,7 +6808,7 @@ TypeChecker::omitNeedlessWords(AbstractFunctionDecl *afd) {
68086808
// Handle contextual type, result type, and returnsSelf.
68096809
Type contextType = afd->getDeclContext()->getDeclaredInterfaceType();
68106810
Type resultType;
6811-
bool returnsSelf;
6811+
bool returnsSelf = false;
68126812

68136813
if (auto func = dyn_cast<FuncDecl>(afd)) {
68146814
resultType = func->getResultInterfaceType();

utils/build-presets.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ enable-new-runtime-build
681681

682682
# Escalate certain C++ warnings to errors for Swift.
683683
extra-swift-cmake-options=
684-
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused"
684+
-DSWIFT_EXTRA_CXX_FLAGS="-Werror=unused -Werror=uninitialized"
685685

686686
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,flto]
687687
mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx

0 commit comments

Comments
 (0)