more warn fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-09-18 00:27:40 +00:00
commit f4e08cd89f
3 changed files with 10 additions and 6 deletions

View file

@ -6,7 +6,7 @@ struct Foo {
int x : 4;
int y : 4;
int : 2;
int f : 1;
unsigned int f : 1;
unsigned int : 5;
int z : 15;
};

View file

@ -19,7 +19,7 @@ namespace test {
}
char *c_str() {
return data;
};
}
};
/* A minimalistic complex class */
@ -211,14 +211,14 @@ namespace Split {
}
}
#endif
};
}
%inline %{
namespace Split {
typedef int PosInteger;
PosInteger ttest1(PosInteger x) {
return x;
};
}
}
%}

View file

@ -25,7 +25,11 @@ char *do_blah(FooObj *f) {
return f->blah();
}
typedef struct {
typedef struct spam {
virtual ~spam()
{
}
virtual char *blah() {
return (char *) "Spam::blah";
}
@ -38,7 +42,7 @@ struct Grok : public Spam {
}
};
char *do_blah2(Spam *s) {
static char * do_blah2(Spam *s) {
return s->blah();
}
%}