|warning: multi-character character constant [message #872222]
||Tue, 15 May 2012 13: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.02347 seconds