This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

strange warning with gcc 3.x


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]