Re: STABLE/13: src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a prototype
Date: Sat, 11 Feb 2023 17:15:08 UTC
2023年2月11日(土) 9:19 FreeBSD User <freebsd@walstatt-de.de>: > Hello, > > compiling most recent FreeBSD 13-STABLE (as of today) with a custom kernel > with disabled 'an' > driver in the wireless section (nodevice an), compiling kernel now fails > with the error: > > src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a > prototype is > deprecated in all versions of C and is not supported in C2x > [-Werror,-Wdeprecated-non-prototype] > > How can this be fixed? > "-Werror, -Wdeprecated-non-prototype" means "Warning! non-prototyped SOMETHING is deprecated" <-- just WARNING treat as ERROR! So, Simply type "make -DWITHOUT_WERROR" JUST Workaround. > Kind regards, > > oh > -- > O. Hartmann > > -- Minoru TANABE EMail kotanabe3@gmail.com