From: Tom Rini Date: Fri, 12 May 2017 13:24:17 -0400 Subject: [U-Boot] net: Disable the format-extra-args warning In-Reply-To: <1494444366-3103-1-git-send-email-trini@konsulko.com> References: <1494444366-3103-1-git-send-email-trini@konsulko.com> Message-ID: <20170512172417.GF5701@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 10, 2017 at 03:26:06PM -0400, Tom Rini wrote: > We will see warnings such as: > net/eth_common.c:57:61: warning: data argument not used by format string [-Wformat-extra-args] > sprintf(enetvar, index ? "%s%daddr" : "%saddr", base_name, index); > ~~~~~~~~ ^ > With clang. In this case we do not want to re-write our code to be less > compact as the above is intentional and readable. Add a comment above > the disabling so that it's clear why we want that warning off. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: