summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-25 12:43:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-25 12:43:52 +0100
commit2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (patch)
treeffbb4403f13fe7d105951e965180638907f3662d /Kernel/init.cpp
parent0b957ed2b1cd6b4949c93c5b39b64b0caf060c12 (diff)
downloadserenity-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.cpp2
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();