From a441f65eab5e3ec972a12936c2bbce1dd34b0787 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 21 Dec 2005 22:55:50 +0000 Subject: [PATCH] Fix warnings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8029 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allegrocl.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Modules/allegrocl.cxx b/Source/Modules/allegrocl.cxx index 32e2657a3..29d98571c 100644 --- a/Source/Modules/allegrocl.cxx +++ b/Source/Modules/allegrocl.cxx @@ -736,12 +736,12 @@ String * convert_literal(String *num_param, String *type) { char *s=Char(num); // very basic parsing of infix expressions. - if(res = infix_to_prefix(num, '|', "logior", type)) return res; - if(res = infix_to_prefix(num, '&', "logand", type)) return res; - if(res = infix_to_prefix(num, '*', "*", type)) return res; - if(res = infix_to_prefix(num, '/', "/", type)) return res; - if(res = infix_to_prefix(num, '+', "+", type)) return res; - if(res = infix_to_prefix(num, '-', "-", type)) return res; + if( (res = infix_to_prefix(num, '|', "logior", type)) ) return res; + if( (res = infix_to_prefix(num, '&', "logand", type)) ) return res; + if( (res = infix_to_prefix(num, '*', "*", type)) ) return res; + if( (res = infix_to_prefix(num, '/', "/", type)) ) return res; + if( (res = infix_to_prefix(num, '+', "+", type)) ) return res; + if( (res = infix_to_prefix(num, '-', "-", type)) ) return res; if (SwigType_type(type) == T_FLOAT || SwigType_type(type) == T_DOUBLE || @@ -1093,8 +1093,8 @@ void dump_linked_types(File *f) { while(n) { Printf(f,"%d: (%x) node '%s' name '%s'\n", i++, n, nodeType(n), Getattr(n,"sym:name")); - Node *t; - if(t = Getattr(n,"allegrocl:synonym-of")) + Node *t = Getattr(n,"allegrocl:synonym-of"); + if(t) Printf(f," synonym-of %s(%x)\n",Getattr(t,"name"),t); n = Getattr(n,"allegrocl:next_linked_type"); }