Kernel: Align the KResult value storage appropriately.

We should figure out how to convert this code to using AK::Result.
This commit is contained in:
Andreas Kling 2019-08-02 19:22:48 +02:00
parent 31de5dee26
commit ae4d707684
Notes: sideshowbarker 2024-07-19 12:56:13 +09:00

View file

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