I was just curious if the following code should result in warning or not by g++ compiler:
// Snip #1
bool x = 0;
x++;
// Snip #2
switch (x) {
default:
printf("hi\n");
}
The problem is such statements exist in a legacy code i work upon :-|, I guess there should be some warnings for these?
I have g++-4.4.3c