* warning message in gcc 3.3, but not gcc 2.95
@ 2004-04-30 2:05 Raymond Cheng
2004-04-30 3:43 ` llewelly
0 siblings, 1 reply; 2+ messages in thread
From: Raymond Cheng @ 2004-04-30 2:05 UTC (permalink / raw)
To: gcc-help
To All:
I recently installed gcc 3.3 onto my laptop while desktop still has the
old gcc 2.95. And then I tried "testing" the compiler with one of my old
code. The new gcc gives
warning: deprecated use of label at end of compound statement
while the old gcc gives no warning. The program still runs (that is
compiled by the new gcc). Is the new gcc catching something important?
Btw, what this warning message means. I already looked at the docs in
gcc.gnu.org and did a search on this mailing list. Can someone tells me
what this warning means or point me to a docs that has a list of warning
messages (not a just a tutorial to gcc)?
Thanks!
Sheng-Chieh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: warning message in gcc 3.3, but not gcc 2.95
2004-04-30 2:05 warning message in gcc 3.3, but not gcc 2.95 Raymond Cheng
@ 2004-04-30 3:43 ` llewelly
0 siblings, 0 replies; 2+ messages in thread
From: llewelly @ 2004-04-30 3:43 UTC (permalink / raw)
To: rscheng; +Cc: gcc-help
Raymond Cheng <rscheng@computermail.net> writes:
> To All:
>
> I recently installed gcc 3.3 onto my laptop while desktop still has the
> old gcc 2.95. And then I tried "testing" the compiler with one of my old
> code. The new gcc gives
>
> warning: deprecated use of label at end of compound statement
[snip]
'depercated' in a warning is issued for a gcc extension which will be
removed in some future rlease. For example, with gcc 3.4.0, this
code:
int main()
{
foo:
}
results in this error message:
label_at_compound_statement_end.c: In function 'main':
label_at_compound_statement_end.c:5: error: label at end of compound
statement
If you place a semi-colon after the label warning (error with 3.4)
vanishes. ISO C requires a semi-colon after the label.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-30 3:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 2:05 warning message in gcc 3.3, but not gcc 2.95 Raymond Cheng
2004-04-30 3:43 ` llewelly
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).