Fixed -Wunused-result warning.

Change-Id: Iea5fab66047ac0a5057a743dbb1fdb27c063188c
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2015-05-20 14:31:02 -07:00
parent fbe085601b
commit 3b070310f0
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}