Paolo- Ziveri

unwanted compiler warnings

Discussion created by Paolo- Ziveri on Nov 3, 2008
Latest reply on Dec 1, 2008 by Steve Melnikoff
In the Code Warrior for ColdFire compiler ( version 5.9.0, processor CF 5235) , if I write a function like this :
 
Code:
void Operation(){ char a, b,c; a = b+c;}

 
I get a warning of "implicit arithmetic conversion from int to char"
This is very annoyng, while I think it is important to still have this warning ifI write
 
Code:
void Operation(){ char a; int b,c; a = b+c;  //here I try to fit an integer in a char without typecasting}

 
is there a way to avoid the warning in the first case , without disabling the "implicit conversion" warning?
 
Thank you
 
Stefano
 

Outcomes