Silence an annoying unreachable out of bounds warning

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-07-07 18:10:47 +02:00
parent 9378115f35
commit 4958759740
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -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