Workaround spurious gcc warning [-Woverlength]

warning: string length ‘2241’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Woverlength-strings]
This commit is contained in:
William S Fulton 2017-09-20 14:04:16 +01:00
parent b3cca589ca
commit 9e79d3566b
1 changed files with 1 additions and 2 deletions

View File

@ -864,9 +864,8 @@ SwigType *SwigType_pop_function_qualifiers(SwigType *t) {
Delete(qualifiers);
}
qualifiers = qual;
c = Char(t);
}
assert(strncmp(c, "f(", 2) == 0);
assert(Strncmp(t, "f(", 2) == 0);
return qualifiers;
}