Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2023 11:28:11 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        FreeBSD User <freebsd@walstatt-de.de>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C
Message-ID:  <B36BAAE7-B746-4936-AC1B-427656A0C301@FreeBSD.org>
In-Reply-To: <20230308111931.27d9e524@thor.intern.walstatt.dynvpn.de>
References:  <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> <E2AFBCE9-4467-4E75-B7E4-4C6E0B03C0AA@FreeBSD.org> <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> <1F3F20A1-C2BC-4A33-ABFD-D20F4ADB67E8@FreeBSD.org> <20230302064153.12940fa8@thor.intern.walstatt.dynvpn.de> <6321CA49-A38A-4FC6-A41E-E9964C2A94E3@FreeBSD.org> <20230308111931.27d9e524@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_F46DA1E4-CBD1-4E3B-A257-BE347ADD5520
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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:
>=20
> [...]
> 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} =3D=3D "i386" || ${MACHINE_CPUARCH} =3D=3D =
"amd64"
_agp=3D           agp
_an=3D            an

-Dimitry


--Apple-Mail=_F46DA1E4-CBD1-4E3B-A257-BE347ADD5520
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZAhjPAAKCRCwXqMKLiCW
ozr3AKCcFaXFhgNGcaCMvCKcIyogByzUEgCgm95h6YS2/Oz+8xbEnTzgFDe8Sqk=
=JH9G
-----END PGP SIGNATURE-----

--Apple-Mail=_F46DA1E4-CBD1-4E3B-A257-BE347ADD5520--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B36BAAE7-B746-4936-AC1B-427656A0C301>