From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 06 Feb 2012 22:01:56 +0100 Subject: [U-Boot] [PATCH 2/2] RFC: Let linker create phy array In-Reply-To: <201202061557.49237.vapier@gentoo.org> References: <1328410966-13946-1-git-send-email-troy.kisky@boundarydevices.com> <201202061407.41263.vapier@gentoo.org> <4F30355C.7060908@boundarydevices.com> <201202061557.49237.vapier@gentoo.org> Message-ID: <4F303FC4.9010109@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 06/02/2012 21:57, Mike Frysinger a ?crit : >> The would give me compiler warnings for unused variables. How does that >> help? > > does gcc issue warnings ? doesn't seem to do so for me. Some do, and some will. >> Is there a keep attribute like the linker has for sections? > > yes, __attribute__((used)) What is the point in adding a 'static' qualifier and a ((used)) attribute, when not adding them in the first place gives the same result? Amicalement, -- Albert.