Commit 5e4b2574 authored by Mathieu Faverge's avatar Mathieu Faverge

Merge branch '15-build-failure-with-designated-initializers' into 'master'

Resolve "build failure with designated initializers"

Closes #15

See merge request !12
parents 297d71d2 34b57c89
......@@ -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,
._metricType =metricType,
._metricMode =metricMode,
._valueType =valueType,
._base =base,
._exponent =exponent,
._unit =unit
OTF2_MetricMember temp;
temp._id =self;
temp._name =name;
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++) {
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