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:
parent
3974c39b69
commit
90847fb49e
3 changed files with 10 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
%{
|
||||
#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 ... */
|
||||
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
%{
|
||||
#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 ... */
|
||||
#pragma error_messages (off, wbadasg) /* Assigning extern "C" ... */
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ struct Outer {
|
|||
};
|
||||
|
||||
///////////////////////////////////////////
|
||||
#ifdef SWIG
|
||||
/* some compilers do not accept these */
|
||||
class {
|
||||
public:
|
||||
Integer a;
|
||||
|
|
@ -47,6 +49,7 @@ struct Outer {
|
|||
struct {
|
||||
Integer b;
|
||||
};
|
||||
#endif
|
||||
|
||||
union {
|
||||
Integer c;
|
||||
|
|
@ -151,6 +154,8 @@ struct Outer {
|
|||
Integer xx;
|
||||
} MultipleInstanceAnonDerived1, MultipleInstanceAnonDerived2, *MultipleInstanceAnonDerived3, MultipleInstanceAnonDerived4[2];
|
||||
|
||||
#ifdef SWIG
|
||||
/* some compilers do not accept these */
|
||||
struct : public InnerMultiple {
|
||||
Integer xx;
|
||||
};
|
||||
|
|
@ -159,6 +164,7 @@ struct Outer {
|
|||
public:
|
||||
Integer yy;
|
||||
};
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////
|
||||
typedef struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue