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>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| arp.c | ||
| arp.h | ||
| bootp.c | ||
| bootp.h | ||
| cdp.c | ||
| cdp.h | ||
| checksum.c | ||
| dns.c | ||
| dns.h | ||
| eth-uclass.c | ||
| eth_common.c | ||
| eth_internal.h | ||
| eth_legacy.c | ||
| link_local.c | ||
| link_local.h | ||
| net.c | ||
| net_rand.h | ||
| nfs.c | ||
| nfs.h | ||
| ping.c | ||
| ping.h | ||
| rarp.c | ||
| rarp.h | ||
| sntp.c | ||
| sntp.h | ||
| tftp.c | ||