Date: Fri, 16 Jun 2023 18:56:50 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272029] multimedia/phonon: fix build with clang 16 Message-ID: <bug-272029-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272029 Bug ID: 272029 Summary: multimedia/phonon: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Assignee: kde@FreeBSD.org Clang 16 has a new error about integer values being outside the valid range for enum types, which shows up when building multimedia/phonon: =20 /wrkdirs/usr/ports/multimedia/phonon/work/.build/phonon/experimental/phonon= 4qt5experimental_autogen/EWIEGA46WW/../../../../../phonon-4.11.1/phonon/exp= erimental/visualization.h:45:27: error: integer value 4294967294 is outside the valid range of values [0, 7]= for the enumeration type 'ObjectDescriptionType' [-Wenum-constexpr-conversion] typedef ObjectDescription<static_cast<Phonon::ObjectDescriptionType>(VisualizationT= ype)> VisualizationDescription; ^ =20 /wrkdirs/usr/ports/multimedia/phonon/work/.build/phonon/experimental/phonon= 4qt5experimental_autogen/EWIEGA46WW/../../../../../phonon-4.11.1/phonon/exp= erimental/visualization.h:46:32: error: integer value 4294967294 is outside the valid range of values [0, 7]= for the enumeration type 'ObjectDescriptionType' [-Wenum-constexpr-conversion] typedef ObjectDescriptionModel<static_cast<Phonon::ObjectDescriptionType>(Visualiza= tionType)> VisualizationDescriptionModel; ^ =20 /wrkdirs/usr/ports/multimedia/phonon/work/phonon-4.11.1/phonon/objectdescri= ption.h:189:41: error: integer value 4294967294 is outside the valid range of values [0, 7]= for the enumeration type 'ObjectDescriptionType' [-Wenum-constexpr-conversion] static inline ObjectDescription<T> fromIndex(int index) { //krazy:exclude=3Dinline ^ =20 /wrkdirs/usr/ports/multimedia/phonon/work/phonon-4.11.1/phonon/objectdescri= ption.h:260:45: error: integer value 4294967294 is outside the valid range of values [0, 7]= for the enumeration type 'ObjectDescriptionType' [-Wenum-constexpr-conversion] friend class ObjectDescriptionModel<T>; ^ This is because enum ObjectDescriptionType only has 6 members, and therefore only gets 3 bits allocated by default. In that case, values like 4294967294 (0xfffffffe) do not fit in it. Work around the problem by declaring enum ObjectDescriptionType to explicitly be of type unsigned, so it can fit 32 bits. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272029-7788>