This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
strange warning with gcc 3.x
- From: Gunther Nikl <gni at gecko dot de>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 20 Aug 2003 17:32:08 +0200
- Subject: 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