Fix some Wimplicit-fallthrough

A "fall through" comment is most portable way to indicate
"no break, fallthru" cases.

 * __attribute__ ((fallthrough))  // is not portable
 * [[fallthrough]]; // is C++17
This commit is contained in:
Robin Gareus 2018-10-26 14:30:26 +02:00
parent 08d205c533
commit c98fc1099d
5 changed files with 15 additions and 10 deletions

View file

@ -438,8 +438,8 @@ 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);
}
// no break, fallthru
default: // Linear
/* fall through */
case ControlList::Linear:
return before->value + (vdelta * (tdelta / trange));
}
}