"warning: multi-line character constant"
The code below works but gives the warning "warning: multi-line character constant" for each character constant I have in the switch-case statement.
Code:
int GObject::configure(const ConfEl* conf){
while(conf){
switch(conf->item.id){
case 'posx':
obj.pos.x = conf->data.i;
break;
case 'posy':
obj.pos.y = conf->data.i;
break;
case 'posz':
obj.pos.z = conf->data.i;
break;
case 'flag':
flags = conf->data.i;
break;
case 'obj3':
load3db(conf->data.str);
break;
}
conf = conf->next;
}
return 0;
}
conf->item.id is an unsigned integer which represents 4 characters. The code above works as expected. Why do I get those warnings? What can I do to eliminate those warnings?
Thank you