Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Aug 8, 2022
1 parent 03700cb commit 6bacb0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion distrho/src/DistrhoPluginVST3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ class PluginVst3

if (mediaType == V3_AUDIO)
{
#if DISTRHO_PLUGIN_NUM_INPUTS > 0 || DISTRHO_PLUGIN_NUM_OUTPUTS > 0
#if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS > 0
const uint32_t busId = static_cast<uint32_t>(busIndex);

if (busDirection == V3_INPUT)
Expand Down Expand Up @@ -877,6 +877,11 @@ class PluginVst3
}

return V3_OK;

#if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS == 0
// unused
(void)state;
#endif
}

v3_result setActive(const bool active)
Expand Down

0 comments on commit 6bacb0a

Please sign in to comment.