Closed fwyzard closed 2 months ago
Due to the upstream clang
updates this introduces a very large number of warnings, like
/home/fwyzard/src/alpaka-group/alpaka/include/alpaka/workdiv/WorkDivHelpers.hpp:229:13: warning: 'switch' missing 'default' label [-Wswitch-default]
229 | switch(gridBlockExtentSubDivRestrictions)
| ^
Is this something that we want to fix, by adding an empty default:
label at the end of every switch statement ?
Or something that we could switch off ?
Is this something that we want to fix, by adding an empty
default:
label at the end of every switch statement ?
well.. 😅
/data/user/aperego/alpaka/include/alpaka/workdiv/WorkDivHelpers.hpp:224:4: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
224 | default:
| ^
Or something that we could switch off ?
This works to silence the warning:
# if BOOST_COMP_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wswitch-default"
# endif
// ...
# if BOOST_COMP_CLANG
# pragma clang diagnostic pop
# endif
warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
🤦🏻
Fixed by #2368.
The current oneAPI release is 2024.2, based on clang 19.