summaryrefslogtreecommitdiff
path: root/libs/evoral
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-18 17:27:09 +0200
committerRobin Gareus <robin@gareus.org>2019-09-18 17:37:54 +0200
commite0d5c1426c4ecad8832847e8a69b65ea6fc100fc (patch)
treea1f7fe3bf4518ec61d501c9a3bf4b96e8704a390 /libs/evoral
parent37194ec805807143c2d9cb4a76ab7f258a3d0622 (diff)
NO-OP: fix some Wimplicit-fallthrough
gcc can recognize various regexps in comments. Since C++17 provides [[fallthrough]], using /* fallthrough */ consistently seems appropriate until we switch to C++17. see also https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
Diffstat (limited to 'libs/evoral')
-rw-r--r--libs/evoral/src/Curve.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/evoral/src/Curve.cpp b/libs/evoral/src/Curve.cpp
index 7ccb2bbc55..c4a2706992 100644
--- a/libs/evoral/src/Curve.cpp
+++ b/libs/evoral/src/Curve.cpp
@@ -322,7 +322,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen) const
// any discrete vector curves somewhere?
assert (0);
case ControlList::Curved:
- // fallthrough, no 2 point spline
+ /* no 2 point spline */
+ /* fallthrough */
default: // Linear:
for (int i = 0; i < veclen; ++i) {
vec[i] = (lx * (m_num / m_den) + m_num * i * dx_num / (m_den * dx_den)) + c;
@@ -342,7 +343,8 @@ Curve::_get_vector (double x0, double x1, float *vec, int32_t veclen) const
// any discrete vector curves somewhere?
assert (0);
case ControlList::Curved:
- // fallthrough, no 2 point spline
+ /* no 2 point spline */
+ /* fallthrough */
default: // Linear:
vec[0] = interpolate_linear (lval, uval, fraction);
break;
@@ -441,7 +443,7 @@ Curve::multipoint_eval (double x) const
double x2 = x * x;
return ev->coeff[0] + (ev->coeff[1] * x) + (ev->coeff[2] * x2) + (ev->coeff[3] * x2 * x);
}
- /* fall through */
+ /* fallthrough */
case ControlList::Linear:
return before->value + (vdelta * (tdelta / trange));
}