warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-10 23:19:30 +00:00
commit ed8dc5198f

View file

@ -391,8 +391,8 @@ void add_defined_foreign_type(Node *n,
Setattr(defined_foreign_ltypes,Copy(k),Copy(mangled_lname_gen));
if(CPlusPlus) {
bool cpp_struct = Strstr(k, "struct ");
bool cpp_union = Strstr(k, "union ");
bool cpp_struct = Strstr(k, "struct ") ? true : false;
bool cpp_union = Strstr(k, "union ") ? true : false;
String *cpp_type = 0;
if(cpp_struct) {