From df16950a0c164890d3dc8a09c26d2ef85338e10d Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Fri, 15 May 2020 01:34:10 -0400 Subject: [PATCH] libhsakmt: use _Static_assert instead of static_assert Using static_assert breaks in "Many Linux" build environment. It is not supported by that libc version. _Static_assert is a compiler built-in and does not depend on the libc version. Change-Id: I37cf0ad10de94d8f6fc8cefc4fdda55c9520d599 Signed-off-by: Felix Kuehling --- src/pci_ids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pci_ids.c b/src/pci_ids.c index 1353cfa23d..0c8df69d28 100644 --- a/src/pci_ids.c +++ b/src/pci_ids.c @@ -269,7 +269,7 @@ static void write_fallback_to_buffer(char *buf, size_t size, uint16_t DeviceId) { char tmp[] = "Device xxxx"; - static_assert(sizeof(tmp) == 12, ""); + _Static_assert(sizeof(tmp) == 12, ""); write_as_hex(DeviceId, &tmp[7]); size_t to_copy = (sizeof(tmp) <= size) ? sizeof(tmp) : size;