Solaris warnings/errors testcase fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-02-20 19:29:50 +00:00
commit 90847fb49e
3 changed files with 10 additions and 0 deletions

View file

@ -3,6 +3,8 @@
%{ %{
#if defined(__SUNPRO_CC) #if defined(__SUNPRO_CC)
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */ #pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
#pragma error_messages (off, wbadinit) /* Using extern "C" ... to initialize ... */
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
#endif #endif
%} %}

View file

@ -3,6 +3,8 @@
%{ %{
#if defined(__SUNPRO_CC) #if defined(__SUNPRO_CC)
#pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */ #pragma error_messages (off, badargtype2w) /* Formal argument ... is being passed extern "C" ... */
#pragma error_messages (off, wbadinit) /* Using extern "C" ... to initialize ... */
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
#endif #endif
%} %}

View file

@ -39,6 +39,8 @@ struct Outer {
}; };
/////////////////////////////////////////// ///////////////////////////////////////////
#ifdef SWIG
/* some compilers do not accept these */
class { class {
public: public:
Integer a; Integer a;
@ -47,6 +49,7 @@ struct Outer {
struct { struct {
Integer b; Integer b;
}; };
#endif
union { union {
Integer c; Integer c;
@ -151,6 +154,8 @@ struct Outer {
Integer xx; Integer xx;
} MultipleInstanceAnonDerived1, MultipleInstanceAnonDerived2, *MultipleInstanceAnonDerived3, MultipleInstanceAnonDerived4[2]; } MultipleInstanceAnonDerived1, MultipleInstanceAnonDerived2, *MultipleInstanceAnonDerived3, MultipleInstanceAnonDerived4[2];
#ifdef SWIG
/* some compilers do not accept these */
struct : public InnerMultiple { struct : public InnerMultiple {
Integer xx; Integer xx;
}; };
@ -159,6 +164,7 @@ struct Outer {
public: public:
Integer yy; Integer yy;
}; };
#endif
/////////////////////////////////////////// ///////////////////////////////////////////
typedef struct { typedef struct {