Skip to content

Commit b11027a

Browse files
committed
Fix cppcheck uninitialized variable in DiffTree() constructor warning. NFCI.
1 parent 4647aae commit b11027a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/ASTDiagnostic.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,7 @@ class TemplateDiff {
603603
unsigned ReadNode;
604604

605605
public:
606-
DiffTree() :
607-
CurrentNode(0), NextFreeNode(1) {
606+
DiffTree() : CurrentNode(0), NextFreeNode(1), ReadNode(0) {
608607
FlatTree.push_back(DiffNode());
609608
}
610609

0 commit comments

Comments
 (0)