Re: [U-Boot] [PATCH] net: Disable the format-extra-args warning

2017-05-10 Thread Jeroen Hofstee
Hello Tom, right, a bit outdated knowledge, but at least more then two years ago, working around this warning would always lead to code increase and I can't think of a reason why the code can actually fail. Suppressing the warning seems fine with me. Regards, Jeroen On 05/10/2017 09:26 PM, To

[U-Boot] [PATCH] net: Disable the format-extra-args warning

2017-05-10 Thread Tom Rini
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