Skip to content

Commit be8031c

Browse files
committed
Fix "error: variable 'icount' set but not used"
1 parent ccefc17 commit be8031c

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/modules/jackrack/plugin_mgr.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,13 @@ typedef AEffect* (*VST_Function)(audioMasterCallback);
194194
static gboolean plugin_is_valid(const LADSPA_Descriptor *descriptor)
195195
{
196196
unsigned long i;
197-
unsigned long icount = 0;
198197
unsigned long ocount = 0;
199198

200199
for (i = 0; i < descriptor->PortCount; i++) {
201200
if (!LADSPA_IS_PORT_AUDIO(descriptor->PortDescriptors[i]))
202201
continue;
203202

204-
if (LADSPA_IS_PORT_INPUT(descriptor->PortDescriptors[i]))
205-
icount++;
206-
else
203+
if (!LADSPA_IS_PORT_INPUT(descriptor->PortDescriptors[i]))
207204
ocount++;
208205
}
209206

0 commit comments

Comments
 (0)