From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 9 Nov 2011 15:44:16 -0500 Subject: [U-Boot] [PATCH 11/13] drivers/video/ct69000.c: Fix GC 4.6 build warning In-Reply-To: <1320866946-28235-11-git-send-email-wd@denx.de> References: <1320866946-28235-1-git-send-email-wd@denx.de> <1320866946-28235-11-git-send-email-wd@denx.de> Message-ID: <201111091544.17111.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 09 November 2011 14:29:04 Wolfgang Denk wrote: > Convert custom debug code to use standard debug() facility. > This also fixes these build warning: > ct69000.c: In function 'FindAndSetPllParamIntoXrRegs': > ct69000.c:706:28: warning: variable 'new_pixclock' set but not used > [-Wunused-but-set-variable] > > --- a/drivers/video/ct69000.c > +++ b/drivers/video/ct69000.c > > #undef VGA_DEBUG > #undef VGA_DUMP_REG > #ifdef VGA_DEBUG > -#define PRINTF(fmt,args...) printf (fmt ,##args) > +#undef _DEBUG > +#define _DEBUG 1 > #else > -#define PRINTF(fmt,args...) > +#undef _DEBUG > +#define _DEBUG 0 > #endif so do you still need this ? since you've converted to debug(), looks like this logic can all go away. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111109/ceaea64a/attachment.pgp