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 }; };