[Phonon] [Bug 486210] New: Missing future-proofing "fix" for clang >= 16
RJVB
bugzilla_noreply at kde.org
Sat Apr 27 17:46:14 BST 2024
https://bugs.kde.org/show_bug.cgi?id=486210
Bug ID: 486210
Summary: Missing future-proofing "fix" for clang >= 16
Classification: Frameworks and Libraries
Product: Phonon
Version: unspecified
Platform: Compiled Sources
OS: All
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: rjvbertin at gmail.com
CC: myriam at kde.org, romain.perier at gmail.com,
sitter at kde.org
Target Milestone: ---
SUMMARY
Commit #069d5a3eb81bcbc730e44c27a0d060a85cf9213d introduced a fix for the
default `-Werror=enum-constexpr-conversion` flag clang-16 introduced. Somehow
it was missed that the same fix is needed in `phonon/backendinterface.h`, enum
`BackendInterface::Class` (currently line 176)
STEPS TO REPRODUCE
1. Build phonon with clang >=16, or with GCC with the `-Wconversion` flag
OBSERVED RESULT
Clang-16+ will give errors and GCC warnings that can be traced back to the
aforementioned class.
EXPECTED RESULT
No errors/warnings.
SOFTWARE/OS VERSIONS
Any new enough to run clang-16+ and at least phonon 4.11.1 and its
dependencies.
ADDITIONAL INFORMATION
Both GCC (12.3.0) and clang (17.0.6) will generate exactly the same library
with and without the fix (using `-Wno-error=enum-constexpr-conversion` for
clang) (phonon 4.11.1 built in `gnu++11` mode).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list