From: Gowri Satish Adimulam <gowri@bitel.co.kr>
To: linux-mips@linux-mips.org
Subject: Re: compilartion error : label at end of compound statement
Date: Mon, 27 Mar 2006 10:15:02 +0900 [thread overview]
Message-ID: <1143422102.3028.0.camel@localhost.localdomain> (raw)
In-Reply-To: <20060324081829.GA3170@linux-mips.org>
Thanks every body
On Fri, 2006-03-24 at 08:18 +0000, Ralf Baechle wrote:
> On Fri, Mar 24, 2006 at 04:07:52PM +0900, Gowri Satish Adimulam wrote:
>
> > Hi ,
> > Iam trying to compile simple application with mips cross compiler ,
>
> You didn't say which one.
>
> (Fortunately it's obvious enough in this case)
>
> > Iam getting the below error ,
> > i tried to google but unable to find relavent solution
> >
> > any pointers will be helpful ,
> >
> > ===============error==========
> >
> > mipsel-linux-uclibc-gcc -Wall -c -o ls.o ls.c
> > ls.c: In function `donlist':
> > ls.c:591: error: label at end of compound statement
>
> Something like:
>
> switch (x) {
> case 3:
> }
>
> will result in this error message in C9x. Solution: insert a semicolon
> like:
>
> switch (x) {
> case 3:
> ;
> }
>
> The reason is that the C stanadard requires - and thus gcc since 3.4 (?) -
> a label to be followed by a statement and a semicolon alone is already
> an statement.
>
> Ralf
next prev parent reply other threads:[~2006-03-27 1:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-16 14:45 [PATCH] oprofile cleanups Atsushi Nemoto
2006-03-24 4:18 ` Atsushi Nemoto
2006-03-24 7:07 ` compilartion error : label at end of compound statement Gowri Satish Adimulam
2006-03-24 8:18 ` Ralf Baechle
2006-03-27 1:15 ` Gowri Satish Adimulam [this message]
2006-03-24 11:12 ` Thiemo Seufer
2006-04-25 15:01 ` [PATCH] oprofile cleanups Atsushi Nemoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1143422102.3028.0.camel@localhost.localdomain \
--to=gowri@bitel.co.kr \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox