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 <Felix.Kuehling@amd.com>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user