From f10521372b121957ad18fa70391e1c59cdc6a589 Mon Sep 17 00:00:00 2001 From: scturtle Date: Sun, 24 Dec 2017 09:17:02 +0800 Subject: [PATCH] Initilize var.def.cls to unknown. --- src/indexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexer.h b/src/indexer.h index e65c9868..692eb32a 100644 --- a/src/indexer.h +++ b/src/indexer.h @@ -387,7 +387,7 @@ struct VarDefDefinitionData { // Type which declares this one. optional declaring_type; - VarClass cls; + VarClass cls = VarClass::Unknown; bool is_local() const { return cls == VarClass::Local; } bool is_macro() const { return cls == VarClass::Macro; }