From 647fcb699a6ea26714dc1c74f18366be5263f601 Mon Sep 17 00:00:00 2001 From: Steve Russell Date: Sat, 15 Mar 2025 02:12:40 +0000 Subject: [PATCH] Port.hpp - suppress warning when building plugins --- include/engine/Port.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/engine/Port.hpp b/include/engine/Port.hpp index bae46303..cc521fe3 100644 --- a/include/engine/Port.hpp +++ b/include/engine/Port.hpp @@ -160,6 +160,8 @@ struct Port { } // Set higher channel voltages to 0 for (uint8_t 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