| warning: multi-character character constant [message #872222] |
Tue, 15 May 2012 13:43  |
Ramkumar Sivaraman Messages: 3 Registered: May 2012 |
Junior Member |
|
|
Hello
I am getting this warning,
warning: multi-character character constant
I know why I am getting this error, since I am comparing an integer to a two letter string constant in single quotes,
#define CMD_ID 'ID'
int iCommand;
switch(iCommand)
{
case CMD_ID: // warning: multi-character character constant
break;
}
But I cannot modify the code to prevent as that leads to many changes. Rather I want to suppress the warning. How can I do it in eclipse IDE or inside the code? My program is in C in Linux.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01509 seconds