Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

error: integer value -1 is outside the valid range of values [0, 3] for the enumeration #110

Closed seanm closed 7 months ago

seanm commented 7 months ago

Vanilla build with clang 19 from git master:

/Users/sean/external/KWStyle/Utilities/boost/mpl/aux_/integral_wrapper.hpp:73:31: error: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'udt_builtin_mixture_enum' [-Wenum-constexpr-conversion]
   73 |     typedef AUX_WRAPPER_INST( BOOST_MPL_AUX_STATIC_CAST(AUX_WRAPPER_VALUE_TYPE, (value - 1)) ) prior;
      |                               ^
/Users/sean/external/KWStyle/Utilities/boost/mpl/aux_/static_cast.hpp:24:47: note: expanded from macro 'BOOST_MPL_AUX_STATIC_CAST'
   24 | #   define BOOST_MPL_AUX_STATIC_CAST(T, expr) static_cast<T>(expr)
      |                                               ^

Time to update boost I guess?

This seems to be only a warning with my Xcode's clang, but apparently now an error.