Sun studio warning suppression in tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12500 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a1c931f0a3
commit
77110db863
12 changed files with 83 additions and 6 deletions
|
|
@ -8,6 +8,12 @@
|
|||
|
||||
%newobject Bar::testFoo;
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
|
||||
class Foo {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,12 @@
|
|||
|
||||
%include "std_string.i"
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, hidevf)
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
#include <cstdio>
|
||||
#include <iostream>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
%module funcptr_cpp
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
|
||||
int addByValue(const int &a, int b) { return a+b; }
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
%module li_std_stream
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
struct A;
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
%module li_std_wstream
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
struct A;
|
||||
%}
|
||||
|
|
@ -49,6 +55,7 @@
|
|||
%}
|
||||
|
||||
%extend std::basic_ostream<wchar_t>{
|
||||
extern "C"
|
||||
std::basic_ostream<wchar_t>&
|
||||
operator<<(const A& a)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
%module member_funcptr_galore
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
|
||||
namespace FunkSpace {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
%module member_pointer
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
class Shape {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
%module namespace_spaces
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
|
||||
class Foo {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
// Test cases for classes that do *NOT* result in smart-pointer wrapping
|
||||
%module smart_pointer_not
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, arrowrtn) /* Questionable return type for ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
%inline %{
|
||||
struct Foo {
|
||||
int x;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
%module typedef_mptr
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
|
||||
#pragma error_messages (off, wbadinit) /* Using extern "C" ... to initialize ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
#if defined(SWIGPYTHON) || defined(SWIGOCAML)
|
||||
|
||||
%inline %{
|
||||
|
|
|
|||
|
|
@ -7,6 +7,12 @@
|
|||
%warnfilter(SWIGWARN_JAVA_COVARIANT_RET, SWIGWARN_CSHARP_COVARIANT_RET) covariant3; /* Java, C# covariant return types */
|
||||
%warnfilter(SWIGWARN_JAVA_COVARIANT_RET, SWIGWARN_CSHARP_COVARIANT_RET) covariant4; /* Java, C# covariant return types */
|
||||
|
||||
%{
|
||||
#if defined(__SUNPRO_CC)
|
||||
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
//
|
||||
// Check this example with directors wherever possible.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue