]> git.baikalelectronics.ru Git - uboot.git/commit
net: Disable the format-extra-args warning
authorTom Rini <trini@konsulko.com>
Wed, 10 May 2017 19:26:06 +0000 (15:26 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 12 May 2017 12:37:40 +0000 (08:37 -0400)
commit4c091a0327d0d4f6081db3900379e36387671102
tree814d7db40beeec57c2fc2ae6a92142d0552cfc2c
parent3dec3a2b43b87e7a04d9894b1a4e1ed6b6b9b554
net: Disable the format-extra-args warning

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@konsulko.com>
net/Makefile