mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
reconstructible: Fix alignas specifier placement.
Alignas should be placed before the type. Placing it after it works for GCC, but fails when building the same codee with clang. The error message is: reconstructible.h:48:27: error: 'alignas' attribute cannot be applied to types char _space[sizeof(MT)] alignas(sizeof(addr_t)); ^ Issue #4298
This commit is contained in:
parent
42ff902576
commit
e748efacd8
@ -45,7 +45,7 @@ Genode::Reconstructible : Noncopyable
|
||||
/**
|
||||
* Static reservation of memory for the embedded object
|
||||
*/
|
||||
char _space[sizeof(MT)] alignas(sizeof(addr_t));
|
||||
alignas(sizeof(addr_t)) char _space[sizeof(MT)];
|
||||
|
||||
/**
|
||||
* True if the volatile object contains a constructed object
|
||||
|
Loading…
Reference in New Issue
Block a user