mirror of https://github.com/swig/swig
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:
parent
b3cca589ca
commit
9e79d3566b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue