From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 01 Jul 2010 09:30:40 +0200 Subject: [U-Boot] [PATCH 4/6 v3] exports.c: fix warning: 'dummy' defined but not used In-Reply-To: <201006301904.42571.vapier@gentoo.org> References: <1277330773-28395-5-git-send-email-wd@denx.de> <1277937886-15576-1-git-send-email-wd@denx.de> <201006301904.42571.vapier@gentoo.org> Message-ID: <20100701073040.05B6C1524EC@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <201006301904.42571.vapier@gentoo.org> you wrote: > > > +static void dummy(void) __attribute__((unused)); > > static void dummy(void) > > { > > } > > put the attribute before the "static" and you shouldnt need the duplicate > prototype Ah, that's the trick that does it. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Use C++ to confuse your enemies; use C to produce stable code.