Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C
- Reply: FreeBSD User : "Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C"
- In reply to: FreeBSD User : "Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Mar 2023 10:28:11 UTC
On 8 Mar 2023, at 11:19, FreeBSD User <freebsd@walstatt-de.de> wrote:
...
> But I don't understand why the make environment is trying to compile a piece of code that is
> disabled via "nodevice" as shown in my initial report herein:
>
> [...]
> 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]
> [...]
The "nodevice" is for your custom kernel configuration, but as far as I
can see an(4) is still built as a module, see sys/modules/Makefile:
...
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
_agp= agp
_an= an
-Dimitry