summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-07-24 09:35:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2017-07-24 09:35:58 +0000
commitbc58e5d7345217fa0fbfa0d9c577ee10c7bd94db (patch)
treee76c9d1daa7b18f9383200459afe40804af83dbf /document
parent737979601f25ace7e5444dd3c925329c5a0a8b6d (diff)
Add [[falltrhough]] for gcc 7
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/select/valuenodes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/document/src/vespa/document/select/valuenodes.cpp b/document/src/vespa/document/select/valuenodes.cpp
index a4afef113fb..d334f4b955e 100644
--- a/document/src/vespa/document/select/valuenodes.cpp
+++ b/document/src/vespa/document/select/valuenodes.cpp
@@ -999,6 +999,7 @@ ArithmeticValueNode::getValue(std::unique_ptr<Value> lval,
return std::unique_ptr<Value>(new StringValue(
slval.getValue() + srval.getValue()));
}
+ [[fallthrough]];
}
case SUB:
case MUL:
@@ -1048,6 +1049,7 @@ ArithmeticValueNode::getValue(std::unique_ptr<Value> lval,
}
return std::unique_ptr<Value>(new FloatValue(res));
}
+ [[fallthrough]];
}
case MOD:
{
@@ -1062,6 +1064,7 @@ ArithmeticValueNode::getValue(std::unique_ptr<Value> lval,
throw vespalib::IllegalArgumentException("Division by zero");
}
}
+ [[fallthrough]];
}
}
return std::unique_ptr<Value>(new InvalidValue);
@@ -1086,6 +1089,7 @@ ArithmeticValueNode::traceValue(std::unique_ptr<Value> lval,
<< "' -> '" << *result << "'.\n";
return result;
}
+ [[fallthrough]];
}
case SUB:
case MUL:
@@ -1131,6 +1135,7 @@ ArithmeticValueNode::traceValue(std::unique_ptr<Value> lval,
<< "\n";
return result;
}
+ [[fallthrough]];
}
case MOD:
{
@@ -1146,6 +1151,7 @@ ArithmeticValueNode::traceValue(std::unique_ptr<Value> lval,
<< "\n";
return result;
}
+ [[fallthrough]];
}
}
out << "Failed to do operation " << getOperatorName()