[MacPorts] #71319: qt5-qtcreator 6.0.2: clang++-16 build error -Wenum-constexpr-conversion

MacPorts noreply at macports.org
Fri Nov 15 08:25:50 UTC 2024


#71319: qt5-qtcreator 6.0.2: clang++-16 build error -Wenum-constexpr-conversion
-------------------------+---------------------------
 Reporter:  rue-ryuzaki  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  qt5-qtcreator
-------------------------+---------------------------
 I can't build port qt5-qtcreator after updating to macOS 15.
 In build log the problem in {{{static_cast<Flag>(-1)}}} witch gives
 {{{error: integer value -1 is outside the valid range of values [0, 255]
 for this enumeration type [-Wenum-constexpr-conversion]}}}

 I found that the '-Wenum-constexpr-conversion' flag is used by default for
 clang++ since version 16 and causes a build error. This problem was fixed
 with [https://github.com/qt-creator/qt-
 creator/commit/3f5d33fe5c2c8e5dfde6e8478102acde6b1b2e57 this commit] in
 qtcreator v10.0.2.

 I can create patch and check it later for v6.0.2, but I think it would be
 better to update qtcreator at least to v10.0.2 (or latest stable v14.0.2)

-- 
Ticket URL: <https://trac.macports.org/ticket/71319>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list