net: Disable the format-extra-args warning
[oweals/u-boot.git] / net / Makefile
index f03d6083268f2b085b9277a72f46685d98c30701..ae54eee5afe047ec6a9cd7cbe2cf448819d286ee 100644 (file)
@@ -25,3 +25,8 @@ obj-$(CONFIG_CMD_PING) += ping.o
 obj-$(CONFIG_CMD_RARP) += rarp.o
 obj-$(CONFIG_CMD_SNTP) += sntp.o
 obj-$(CONFIG_CMD_NET)  += tftp.o
+
+# Disable this warning as it is triggered by:
+# sprintf(buf, index ? "foo%d" : "foo", index)
+# and this is intentional usage.
+CFLAGS_eth_common.o += -Wno-format-extra-args