strange warning with gcc 3.x

Gunther Nikl gni@gecko.de
Wed Aug 20 17:00:00 GMT 2003


Hello!

The following code generates a warning:

--cut--
int i;
void foo(void) {
  switch(i) {
    default:
  }
}
--cut--

Compiling this code with: gcc -c foo.c gives:

foo.c: In function 'foo':
foo.c:7: warning: deprecated use of label at end of compound statement

Is the warning correct?

Thank you,
Gunther Nikl



More information about the Gcc mailing list