0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd:Ⓜ️ Fix alignment specifiers for clang.

This commit is contained in:
Jason Volk 2020-02-01 18:05:54 -08:00
parent e241ab9e51
commit 42e3570c9f
2 changed files with 4 additions and 3 deletions

View file

@ -422,7 +422,8 @@ ircd::m::id::id(const enum sigil &sigil,
const string_view &host)
:string_view{[&sigil, &buf, &local, &host]
{
thread_local char tmp[2][MAX_SIZE] alignas(16);
thread_local char tmp alignas(16) [2][MAX_SIZE];
static_assert(sizeof(tmp) == MAX_SIZE * 2);
const string_view src
{
startswith(local, sigil)?

View file

@ -573,7 +573,7 @@ ircd::m::event::idx
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::getidx(const alias &alias)
{
thread_local char swapbuf[m::id::room_alias::buf::SIZE];
thread_local char swapbuf alignas(16) [m::id::room_alias::buf::SIZE];
const string_view &swapped
{
alias.swap(swapbuf)
@ -609,7 +609,7 @@ ircd::m::room::aliases::cache::make_key(const mutable_buffer &out,
const alias &alias)
{
thread_local char swapbuf[m::id::room_alias::buf::SIZE] alignas(16);
thread_local char swapbuf alignas(16) [m::id::room_alias::buf::SIZE];
const string_view &swapped
{
alias.swap(swapbuf)