linux-mips
[Top] [All Lists]

Re: compilartion error : label at end of compound statement

To: Gowri Satish Adimulam <gowri@bitel.co.kr>
Subject: Re: compilartion error : label at end of compound statement
From: Thiemo Seufer <ths@networkno.de>
Date: Fri, 24 Mar 2006 11:12:13 +0000
Cc: linux-mips@linux-mips.org
In-reply-to: <1143184072.3249.26.camel@localhost.localdomain>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060216.234519.82087885.anemo@mba.ocn.ne.jp> <20060324.131809.115639866.nemoto@toshiba-tops.co.jp> <1143184072.3249.26.camel@localhost.localdomain>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11+cvs20060126
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 ,
> 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
> 
> ==============end of error============

The compiler got pickier about such empty statements some years
ago, you'll have to update your source from .e.g.

        switch (.....) {
        case 1:
                .....
                break;

        default:
        }

to

        switch (.....) {
        case 1:
                .....
                break;

        default:
                break;
        }


Thiemo

<Prev in Thread] Current Thread [Next in Thread>