From 17dc72d08e048493b7201ddaa551a93c204a9db1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 27 Oct 2013 17:03:49 +0100 Subject: [PATCH] silence warning for ancient libc users&devs :) string.h 'index' is a global declaration marked legacy in 2001 and removed in posix.1-2008 --- libs/plugins/reasonablesynth.lv2/lv2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/reasonablesynth.lv2/lv2.c b/libs/plugins/reasonablesynth.lv2/lv2.c index 1fcfba868e..b29590c78a 100644 --- a/libs/plugins/reasonablesynth.lv2/lv2.c +++ b/libs/plugins/reasonablesynth.lv2/lv2.c @@ -185,9 +185,9 @@ static const LV2_Descriptor descriptor = { LV2_SYMBOL_EXPORT const LV2_Descriptor* -lv2_descriptor(uint32_t index) +lv2_descriptor(uint32_t idx) { - switch (index) { + switch (idx) { case 0: return &descriptor; default: