diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 12:43:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 12:43:52 +0100 |
commit | 2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (patch) | |
tree | ffbb4403f13fe7d105951e965180638907f3662d /Kernel/init.cpp | |
parent | 0b957ed2b1cd6b4949c93c5b39b64b0caf060c12 (diff) | |
download | serenity-2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f.zip |
AK: Add Retained<T>, like RetainPtr, but never null.
Also use some Clang attribute wizardry to get a warning for use-after-move.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 05e2c0a32e..bbabc84acf 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -149,7 +149,7 @@ VFS* vfs; new BXVGADevice; - auto new_procfs = ProcFS::create(); + Retained<ProcFS> new_procfs = ProcFS::create(); new_procfs->initialize(); auto devptsfs = DevPtsFS::create(); |