On Sat, 20 Feb 2021 14:22:51 +0200 Andrey Gusev andrey.goosev@gmail.com wrote:
This changes behavior (*modifier is not being set anymore). A better way to silence the warning may be to annotate the fall-through, like this:
default: FIXME("Skipping modifier 0x%08x.\n", m); /* fall-through */ case VKD3D_SM4_REGISTER_MODIFIER_NONE: *modifier = VKD3DSPSM_NONE; break;
(at least in my experience, GCC and Clang recognize a comment like that and suppress the implicit fall through warning).