We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Wsometimes-uninitialized
1 parent 50b5ecf commit 3807362Copy full SHA for 3807362
lib/Sema/MiscDiagnostics.cpp
@@ -6808,7 +6808,7 @@ TypeChecker::omitNeedlessWords(AbstractFunctionDecl *afd) {
6808
// Handle contextual type, result type, and returnsSelf.
6809
Type contextType = afd->getDeclContext()->getDeclaredInterfaceType();
6810
Type resultType;
6811
- bool returnsSelf;
+ bool returnsSelf = false;
6812
6813
if (auto func = dyn_cast<FuncDecl>(afd)) {
6814
resultType = func->getResultInterfaceType();
0 commit comments