Skip to content

Commit 6bacb0a

Browse files
committed
Fix a warning
1 parent 03700cb commit 6bacb0a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

distrho/src/DistrhoPluginVST3.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ class PluginVst3
846846

847847
if (mediaType == V3_AUDIO)
848848
{
849-
#if DISTRHO_PLUGIN_NUM_INPUTS > 0 || DISTRHO_PLUGIN_NUM_OUTPUTS > 0
849+
#if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS > 0
850850
const uint32_t busId = static_cast<uint32_t>(busIndex);
851851

852852
if (busDirection == V3_INPUT)
@@ -877,6 +877,11 @@ class PluginVst3
877877
}
878878

879879
return V3_OK;
880+
881+
#if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS == 0
882+
// unused
883+
(void)state;
884+
#endif
880885
}
881886

882887
v3_result setActive(const bool active)

0 commit comments

Comments
 (0)