]> git.proxmox.com Git - mirror_qemu.git/commit
hw/cxl: Fix a QEMU_BUILD_BUG_ON() in switch statement scope issue.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Oct 2023 14:02:10 +0000 (15:02 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Nov 2023 08:39:11 +0000 (03:39 -0500)
commit45234c2dd2920f16f768bda1ec8353bda8c5a929
treefa6d8463fbd50db88e1b4b34682ecd00d021f8d5
parentb342489ae795f5c2a9f7a565bac8443ccb11b0ce
hw/cxl: Fix a QEMU_BUILD_BUG_ON() in switch statement scope issue.

As _Static_assert is a declaration, it can't follow a label until C23.
Some older versions of GCC trip up on this one.

This check has no obvious purpose so just remove it.

Reported-by: Jeongtae Park <jtp.park@samsung.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20231023140210.3089-6-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/cxl/cxl-component-utils.c