Hello Andrew, On 22.02.19 12:27, Andrew Cooper wrote:
Can someone attempt to justify why actively breaking -Wswitch is going to result in safer/better code?
I would express my vision of that MISRA rule requirement: It requires handling (in any meaning) all possible incoming values explicitly. Switching through enum still could be guarded by BUG/ASSERT_UNREACHABLE under default label. Though at runtime, not compilation time.
-- Sincerely, Andrii Anisov. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel