Fix compiler warnings
This commit is contained in:
parent
425e7527bb
commit
55e45add4a
|
@ -7411,11 +7411,15 @@ public:
|
|||
start(nullptr),
|
||||
end(nullptr) {
|
||||
}
|
||||
EnumValue(const EnumValue &ev) :
|
||||
name(ev.name),
|
||||
value(ev.value),
|
||||
start(ev.start),
|
||||
end(ev.end) {
|
||||
EnumValue(const EnumValue &ev) {
|
||||
*this = ev;
|
||||
}
|
||||
EnumValue& operator=(const EnumValue& ev) {
|
||||
name=ev.name;
|
||||
value=ev.value;
|
||||
start=ev.start;
|
||||
end=ev.end;
|
||||
return *this;
|
||||
}
|
||||
EnumValue(Token *name_, Token *value_, Token *start_, Token *end_) :
|
||||
name(name_),
|
||||
|
|
|
@ -2583,7 +2583,7 @@ private:
|
|||
"void f() {\n"
|
||||
" st s;\n"
|
||||
" std::memset(&s, 0, sizeof(st));\n"
|
||||
"}", "std.cfg");
|
||||
"}", true);
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue