Fix compilation of mips_postboot_fixup() with a C11 compiler
The _Alignas specifier must come before the declaration and not after. It works if _Alignas() expands to __attribute__(aligned(x)) which was the only case I tested before. Approved By: jhb (mentor)
This commit is contained in:
parent
d241ba38fa
commit
4f50e4740f
@ -387,7 +387,7 @@ mips_postboot_fixup(void)
|
||||
* We store u_long sized objects into the reload area, so the array
|
||||
* must be so aligned. The standard allows any alignment for char data.
|
||||
*/
|
||||
static char fake_preload[256] _Alignas(_Alignof(u_long));
|
||||
_Alignas(_Alignof(u_long)) static char fake_preload[256];
|
||||
caddr_t preload_ptr = (caddr_t)&fake_preload[0];
|
||||
size_t size = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user