From: York Sun Date: Tue, 18 Apr 2017 08:33:54 -0700 Subject: [U-Boot] [Patch v2] drivers: ddr: fsl: fix unused-const-variable warnings In-Reply-To: <1490805120-23237-1-git-send-email-york.sun@nxp.com> References: <1490805120-23237-1-git-send-email-york.sun@nxp.com> Message-ID: <27d292f5-273c-baf9-4e8e-f1867fecd51c@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/29/2017 09:32 AM, york sun wrote: > From: Thomas Schaefer > > Depending on DDR configuration, gcc-6.x will show up unused-const- > variable messages. Use __maybe_unused specifier for all dynamic_odt > variable definitions to remove these warnings. > > Memory footprint will not increase as gcc will optimize out unused > constants. > > Signed-off-by: Thomas Schaefer > Signed-off-by: York Sun > --- > Change log: > v2: Put storage class first > Applied to u-boot-fsl-qoriq master, awaiting upstream. York