Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2019 21:23:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 239192] graphics/drm-legacy-kmod: fix build on CURRENT with clang
Message-ID:  <bug-239192-7141-ZxeuMkl2cg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239192-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239192-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 mailing li=
st
<x11@FreeBSD.org> for maintainer-feedback:
Bug 239192: graphics/drm-legacy-kmod: fix build on CURRENT with clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239192



--- Description ---
With powerpc64 switching to clang in head, I tried to compile drm-legacy wi=
th
clang.

It fails with many similar errors:
/tmp/usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-990f64b/src/dev/drm=
2/dr
m_crtc.c:229:63:
error: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int=
 *')
      converts between pointers to integer types with different sign
[-Werror,-Wpointer-sign]
	ret =3D drm_gem_name_create(&dev->mode_config.crtc_names, obj, &new_id);
								     ^~~~~~~
Add -Wno-error=3Dpointer-sign to CFLAGS when using new clang.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239192-7141-ZxeuMkl2cg>