Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Oct 2024 10:46:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 281890] multimedia/obs-studio: fix build with clang 19
Message-ID:  <bug-281890-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281890

            Bug ID: 281890
           Summary: multimedia/obs-studio: fix build with clang 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dim@FreeBSD.org
          Assignee: yuri@freebsd.org
             Flags: maintainer-feedback?(yuri@freebsd.org)

Clang 19 has become more strict about mixing different enum types, which
results in an error building multimedia/obs-studio:

=20
/wrkdirs/usr/ports/multimedia/obs-studio/work/obs-studio-30.2.3/plugins/obs=
-outputs/flv-mux.c:659:37:
error: bitwise operation between different enumeration types ('enum
multitrack_type_t' and 'enum packet_type_t') [-Werror,-Wenum-enum-conversio=
n]
    659 |                 s_w8(&s, MULTITRACKTYPE_ONE_TRACK |
PACKETTYPE_METADATA);
        |                          ~~~~~~~~~~~~~~~~~~~~~~~~ ^
~~~~~~~~~~~~~~~~~~~

This can be fixed by explicitly casting each enum type to uint8_t.

--=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-281890-7788>