Browse Source

Prevent unused variable warning in Module::configBypass().

tags/v2.1.2
Andrew Belt 2 years ago
parent
commit
f6201f3820
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      include/engine/Module.hpp

+ 2
- 0
include/engine/Module.hpp View File

@@ -225,6 +225,8 @@ struct Module {
assert(outputId < (int) outputs.size()); assert(outputId < (int) outputs.size());
// Check that output is not yet routed // Check that output is not yet routed
for (BypassRoute& br : bypassRoutes) { for (BypassRoute& br : bypassRoutes) {
// Prevent unused variable warning for compilers that ignore assert()
(void) br;
assert(br.outputId != outputId); assert(br.outputId != outputId);
} }




Loading…
Cancel
Save