Fixed -Wunused-result warning.
Change-Id: Iea5fab66047ac0a5057a743dbb1fdb27c063188c Tested: on Linux.
This commit is contained in:
parent
fbe085601b
commit
3b070310f0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue