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:
Felix Kuehling
2020-05-15 01:34:10 -04:00
rodzic aa185380f9
commit df16950a0c
+1 -1
Wyświetl plik
@@ -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;