13
0

silence warning for ancient libc users&devs :)

string.h 'index' is a global declaration
marked legacy in 2001 and removed in posix.1-2008
This commit is contained in:
Robin Gareus 2013-10-27 17:03:49 +01:00
parent 2cad99bf39
commit 17dc72d08e

View File

@ -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: