mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
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:
parent
08d205c533
commit
c98fc1099d
5 changed files with 15 additions and 10 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue