[U-Boot] net: Disable the format-extra-args warning
Tom Rini
trini at konsulko.com
Fri May 12 17:24:17 UTC 2017
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 <trini at konsulko.com>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/ed89b837/attachment.sig>
More information about the U-Boot
mailing list