The code below works but gives the warning "warning: multi-line character constant" for each character constant I have in the switch-case statement.
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?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; }
Thank you



LinkBack URL
About LinkBacks



CornedBee