Silence an annoying unreachable out of bounds warning
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
9378115f35
commit
4958759740
1 changed files with 2 additions and 0 deletions
|
@ -198,6 +198,8 @@ struct Port {
|
|||
}
|
||||
// Set higher channel voltages to 0
|
||||
for (int c = channels; c < this->channels; c++) {
|
||||
if (c >= PORT_MAX_CHANNELS)
|
||||
__builtin_unreachable();
|
||||
voltages[c] = 0.f;
|
||||
}
|
||||
// Don't allow caller to set port as disconnected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue