[PATCH] D143411: [NFC][clang] Fix static analyzer concern about uninitialized variable
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 6 08:35:55 PST 2023
Fznamznon created this revision.
Fznamznon added reviewers: NoQ, xazax.hun, gribozavr, ymandel, sgatev.
Herald added subscribers: manas, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, a.sidorin, rnkovacs, baloghadamsoftware.
Herald added a project: All.
Fznamznon requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143411
Files:
clang/lib/Sema/AnalysisBasedWarnings.cpp
Index: clang/lib/Sema/AnalysisBasedWarnings.cpp
===================================================================
--- clang/lib/Sema/AnalysisBasedWarnings.cpp
+++ clang/lib/Sema/AnalysisBasedWarnings.cpp
@@ -574,6 +574,7 @@
D.diag_AlwaysFallThrough_HasNoReturn = 0;
D.diag_AlwaysFallThrough_ReturnsNonVoid =
diag::warn_falloff_nonvoid_coroutine;
+ D.diag_NeverFallThroughOrReturn = 0;
D.funMode = Coroutine;
return D;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143411.495151.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230206/9bb97699/attachment.bin>
More information about the cfe-commits
mailing list