From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 18 Jul 2008 13:43:55 +1000 From: David Gibson To: Adrian Bunk Subject: Re: [2.6 patch] powerpc/boot/dtc-src/dtc-lexer.l: add %option noinput Message-ID: <20080718034355.GE18748@yookeroo.seuss> References: <20080717181949.GC18326@cs181140183.pp.htv.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20080717181949.GC18326@cs181140183.pp.htv.fi> Cc: Paul Mackerras , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Jul 17, 2008 at 09:19:49PM +0300, Adrian Bunk wrote: > gcc 4.3 correctly determines that input() is unused and gives the > following warning: > > <-- snip --> > > ... > HOSTCC arch/powerpc/boot/dtc-src/dtc-lexer.lex.o > dtc-lexer.lex.c:1436: warning: ‘input’ defined but not used > ... > > <-- snip --> > > Fix it by adding %option noinput to > arch/powerpc/boot/dtc-src/dtc-lexer.l and > regeneration of arch/powerpc/boot/dtc-src/dtc-lexer.lex.c_shipped. > > Signed-off-by: Adrian Bunk Uh.. that should be fixed in dtc upstream. It's probably time we updated the in-kernel dtc from upstream anyway. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson