linux-mips
[Top] [All Lists]

Re: MIPS: Fix build error with modern GCC for non-Cavium.

To: linux-mips@linux-mips.org
Subject: Re: MIPS: Fix build error with modern GCC for non-Cavium.
From: "Maciej W. Rozycki" <macro@linux-mips.org>
Date: Sat, 8 Sep 2012 20:28:26 +0100 (BST)
In-reply-to: <S1903390Ab2IDU16/20120904202758Z+1425@eddie.linux-mips.org>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <S1903390Ab2IDU16/20120904202758Z+1425@eddie.linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
On Tue, 4 Sep 2012, linux-mips@linux-mips.org wrote:

> An empty default block is not allowed so add a ; as empty statement to
> make gcc happy.

 A dummy "break" is the usual solution though.  I don't think GCC ever 
complains if it sees it unreachable after a "return" -- in a sense it is 
just as unreachable as this null instruction is.

  Maciej

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