Browse Source

Kernel: Align the KResult value storage appropriately.

We should figure out how to convert this code to using AK::Result.
Andreas Kling 6 years ago
parent
commit
ae4d707684
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/KResult.h

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