Commit 34b57c89 authored by Johnny Jazeix's avatar Johnny Jazeix

fix build failure with designated initializers

parent 297d71d2
......@@ -328,17 +328,16 @@ OTF2_CallbackCode ParserDefinitionOTF2::handler_DefMetricMember( void*
OTF2_Base base,
int64_t exponent,
OTF2_StringRef unit ) {
OTF2_MetricMember temp = {
._id =self,
._name =name,
._description=description,
._metricType =metricType,
._metricMode =metricMode,
._valueType =valueType,
._base =base,
._exponent =exponent,
._unit =unit
};
OTF2_MetricMember temp;
temp._id =self;
temp._name =name;
temp._description=description;
temp._metricType =metricType;
temp._metricMode =metricMode;
temp._valueType =valueType;
temp._base =base;
temp._exponent =exponent;
temp._unit =unit;
ParserDefinitionOTF2::_metric_member[self] = temp;
......@@ -352,11 +351,10 @@ OTF2_CallbackCode ParserDefinitionOTF2::handler_DefMetricClass( void*
OTF2_MetricOccurrence metricOccurrence,
OTF2_RecorderKind recorderKind ) {
OTF2_MetricClass temp = {
._id = self,
._metricOccurrence = metricOccurrence,
._recorderKind = recorderKind,
};
OTF2_MetricClass temp;
temp._id = self;
temp._metricOccurrence = metricOccurrence;
temp._recorderKind = recorderKind;
for(int i=0; i<numberOfMetrics; i++) {
temp._metricMembers.push_back(metricMembers[i]);
......
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