|warning: multi-character character constant [message #872222]
||Tue, 15 May 2012 17:43
| Ramkumar Sivaraman
Registered: May 2012
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'
case CMD_ID: // warning: multi-character character constant
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.01549 seconds