Cleanup: compiler warnings

This commit is contained in:
2021-03-07 14:46:48 +01:00
parent c14770370f
commit e72dc1e6c6
3 changed files with 8 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ MFFunctionNode &MFNetwork::add_function(const MultiFunction &function)
}
}
MFFunctionNode &node = *allocator_.construct<MFFunctionNode>();
MFFunctionNode &node = *allocator_.construct<MFFunctionNode>().release();
function_nodes_.add_new(&node);
node.network_ = this;
@@ -129,7 +129,7 @@ MFDummyNode &MFNetwork::add_dummy(StringRef name,
assert_same_size(input_types, input_names);
assert_same_size(output_types, output_names);
MFDummyNode &node = *allocator_.construct<MFDummyNode>();
MFDummyNode &node = *allocator_.construct<MFDummyNode>().release();
dummy_nodes_.add_new(&node);
node.network_ = this;