提交 8820ba29 编写于 作者: B Behdad Esfahbod

Fix warning about "may be used uninitialized"

上级 91770e1c
......@@ -941,7 +941,7 @@ struct Coverage
}
struct Iter {
Iter (void) : format (0) {};
Iter (void) : format (0), u () {};
inline void init (const Coverage &c_) {
format = c_.u.format;
switch (format) {
......@@ -982,8 +982,8 @@ struct Coverage
private:
unsigned int format;
union {
CoverageFormat2::Iter format2; /* Put this one first since it's larger; helps shut up compiler. */
CoverageFormat1::Iter format1;
CoverageFormat2::Iter format2;
} u;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册