Fix 2 of the 3 warnings under PHP (the remaining one doesn't seem to respond
to %warnfilter as I'd expect...) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b61f9da6e6
commit
abcff1089d
1 changed files with 10 additions and 7 deletions
|
|
@ -1,20 +1,23 @@
|
||||||
%module php_namewarn_rename
|
%module php_namewarn_rename
|
||||||
|
|
||||||
|
#ifdef SWIGPHP
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) Empty();
|
||||||
|
// FIXME: this doesn't work for me:
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) stdClass;
|
||||||
|
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
||||||
void Empty() {};
|
void Empty() {}
|
||||||
|
|
||||||
|
|
||||||
class stdClass
|
class stdClass
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Hello
|
struct Hello
|
||||||
{
|
{
|
||||||
void empty() {}
|
void empty() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue