In file included from drivers/net/davicom.c:47:0:
drivers/net/davicom.c:700:45: error: 'davicom_driver_text' defined but not used [-Werror=unused-const-variable=]
DRIVER ( "DAVICOM", nic_driver, pci_driver, davicom_driver,
include/nic.h:212:20: note: in definition of macro 'DRIVER'
static const char _name ## _text = _name_text; \
gcc6 build log: http://sprunge.us/QeAa
-Werror may not be a good idea for this port (not the least since GCC 7
is going to add many more new warnings).
Created attachment 179881 [details]
The ipxe update in bug #216329 builds fine with gcc6 with -Werror. Can't speak for gcc7 though.
But I'm fine with not using -Werror for this port. Adding NO_WERROR=1 to MAKE_FLAGS should do it.
A commit references this bug:
Date: Sat Feb 11 20:52:24 UTC 2017
New revision: 433912
net/ipxe: verbose build and unbreak with gcc6 or later
Submitted by: Tobias Kortkamp <email@example.com> (maintainer)
Thanks. Landed. Builds fine with lang/gcc7-devel as well.