Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2003 22:17:38 +0200
From:      Melvyn Sopacua <freebsd-stable@webteckies.org>
To:        Adriaan de Groot <adridg@cs.kun.nl>, freebsd-stable@freebsd.org
Cc:        kde@freebsd.org
Subject:   Re: [PATCH?] vm/vm_map.h C++ incompatible
Message-ID:  <200309252217.46294.freebsd-stable@webteckies.org>
In-Reply-To: <200309251040.25568.adridg@cs.kun.nl>
References:  <200309251040.25568.adridg@cs.kun.nl>

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

--Boundary-02=_q10c/LIEjOojaWN
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

On Thursday 25 September 2003 10:40, Adriaan de Groot wrote:
> On 4.9-pre, vm/vm_map.h is not C++ compatible, due to this kind of call:
>
> 	lockmgr(&(map)->lock, LK_RELEASE, (void *)0, curproc);
>
> C++ (or rather, gcc 2.95.4) refuses to cast (void *) to the desired (stru=
ct
> simplelock *), so C++ compilations that accidentally include vm/vm_map.h
> fail. So do C++ compiles that intentionally pick it up, like kfontinst,
> which is why I'm cc-ing kde@.

Don't strip -pedantic from the CXXFLAGS and it's turned into a warning.

=2D-=20
Melvyn
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
=46reeBSD ghost.lan.webteckies.org 4.8-STABLE FreeBSD 4.8-STABLE #5: Tue Se=
p  2=20
17:36:05 CEST 2003     root@ghost.lan.webteckies.org:/usr/obj/usr/src/sys/
GHOST  i386
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D

--Boundary-02=_q10c/LIEjOojaWN
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQA/c01qOv9JNmfFN5URAm7ZAKCMi01aggpEN/Y7Z6I3981L++4LJgCgtiSW
7dPrUGMsOauUUt5+C/FAIyc=
=CUY3
-----END PGP SIGNATURE-----

--Boundary-02=_q10c/LIEjOojaWN--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309252217.46294.freebsd-stable>