ruby warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d27b9fd3f5
commit
20fc761449
3 changed files with 15 additions and 7 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
%module caca
|
%module caca
|
||||||
|
|
||||||
|
%warnfilter(801) hi; /* Ruby, wrong constant name */
|
||||||
|
%warnfilter(801) hello; /* Ruby, wrong constant name */
|
||||||
|
|
||||||
%inline
|
%inline
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
%module preproc
|
%module preproc
|
||||||
|
|
||||||
|
%warnfilter(801) one; /* Ruby, wrong constant name */
|
||||||
|
%warnfilter(801) three; /* Ruby, wrong constant name */
|
||||||
|
%warnfilter(801) __GMP_HAVE_CONST; /* Ruby, wrong constant name */
|
||||||
|
%warnfilter(801) __GMP_HAVE_PROTOTYPES; /* Ruby, wrong constant name */
|
||||||
|
%warnfilter(801) __GMP_HAVE_TOKEN_PASTE; /* Ruby, wrong constant name */
|
||||||
|
|
||||||
/* check __cplusplus case */
|
/* check __cplusplus case */
|
||||||
%header
|
%header
|
||||||
%{
|
%{
|
||||||
|
|
@ -254,7 +260,7 @@ inline const char* mangle ## #@__VA_ARGS__ () {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* empyt TWO() macro is broken */
|
/* empty TWO() macro is broken */
|
||||||
#define ONE 1
|
#define ONE 1
|
||||||
#define TWO() 2
|
#define TWO() 2
|
||||||
#define THREE(FOO) 3
|
#define THREE(FOO) 3
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
%module("templatereduce") template_typedef_ptr
|
%module("templatereduce") template_typedef_ptr
|
||||||
%module("templatereduce") template_typedef_ptr
|
|
||||||
|
%warnfilter(801) Test<int, C*>; /* Ruby, wrong constant name */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Use the "templatereduce" option to force swig to reduce the
|
Use the "templatereduce" feature to force swig to reduce the template
|
||||||
temaplate typedef as much as possible.
|
typedef as much as possible.
|
||||||
|
|
||||||
This fix cases like the one in this file, but it can prevent some
|
|
||||||
typemaps for working as expected.
|
|
||||||
|
|
||||||
|
This fixes cases like this one, but it can prevent some
|
||||||
|
typemaps from working.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue