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:
Olly Betts 2009-08-11 13:56:50 +00:00
commit abcff1089d

View file

@ -1,20 +1,23 @@
%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 %{
void Empty() {};
void Empty() {}
class stdClass
class stdClass
{
};
struct Hello
struct Hello
{
void empty() {}
void empty() {}
};
%}