Hi

I noticed that CIL removes some parentheses and GCC's -Wall produces a warning.

input:

int var = 0x0;
if ( (!var) & 0x1)
{   
    return 1;
}
return 0;


output:

var = 0;
if (! var & 1) {
  return (1);
}
return (0);


GCC's warning message: suggest parentheses around operand of '!' or change '&' 
to '&&' or '!' to '~' [-Werror=parentheses]


I know the output is valid C code and we can argue if GCC should warn or not, 
but I don't like to disable this new warning. 

Is it possible to modify this behaviour? 

Thanks.
- Jan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to