fix compiler warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9181 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-06-29 22:03:56 +00:00
commit d384eef60d
3 changed files with 4 additions and 4 deletions

View file

@ -186,8 +186,8 @@ class Allocate : public Dispatcher {
if (decl_match && returntype_match) {
// Found an identical method in the base class
bool this_wrapping_protected_members = is_member_director(n); // This should really check for dirprot rather than just being a director method
bool base_wrapping_protected_members = is_member_director(base); // This should really check for dirprot rather than just being a director method
bool this_wrapping_protected_members = is_member_director(n) ? true : false; // This should really check for dirprot rather than just being a director method
bool base_wrapping_protected_members = is_member_director(base) ? true : false; // This should really check for dirprot rather than just being a director method
bool both_have_public_access = is_public(n) && is_public(base);
bool both_have_protected_access = (is_protected(n) && this_wrapping_protected_members) && (is_protected(base) && base_wrapping_protected_members);
bool both_have_private_access = is_private(n) && is_private(base);

View file

@ -1363,7 +1363,7 @@ public:
output = s_fakeoowrappers;
}
bool really_overloaded = overloaded;
bool really_overloaded = overloaded ? true : false;
int min_num_of_arguments = emit_num_required(l);
int max_num_of_arguments = emit_num_arguments(l);
// For a function with default arguments, we end up with the fullest

View file

@ -2363,7 +2363,7 @@ int R::classDeclaration(Node *n) {
// typedefHandler(n);
}
bool opaque = GetFlag(n, "feature:opaque");
bool opaque = GetFlag(n, "feature:opaque") ? true : false;
if(opaque)
opaqueClassDeclaration = name;