Fixed -Wunused-result warning.

Change-Id: Iea5fab66047ac0a5057a743dbb1fdb27c063188c
Tested: on Linux.
parent fbe08560
......@@ -893,8 +893,7 @@ StructDef &Parser::StartStruct() {
if (!files_being_parsed_.empty()) struct_def.file = files_being_parsed_.top();
// Move this struct to the back of the vector just in case it was predeclared,
// to preserve declaration order.
remove(structs_.vec.begin(), structs_.vec.end(), &struct_def);
structs_.vec.back() = &struct_def;
*remove(structs_.vec.begin(), structs_.vec.end(), &struct_def) = &struct_def;
return struct_def;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment