From ae4d7076841cf5091e015871335043b62d71a613 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 2 Aug 2019 19:22:48 +0200 Subject: [PATCH] Kernel: Align the KResult value storage appropriately. We should figure out how to convert this code to using AK::Result. --- Kernel/KResult.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/KResult.h b/Kernel/KResult.h index b0c7a67f37..c631b226fc 100644 --- a/Kernel/KResult.h +++ b/Kernel/KResult.h @@ -94,7 +94,7 @@ public: } private: - char m_storage[sizeof(T)] __attribute__((aligned(sizeof(T)))); + alignas (T) char m_storage[sizeof(T)]; KResult m_error; bool m_is_error { false }; };