From 2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 25 Feb 2019 12:43:52 +0100 Subject: AK: Add Retained, like RetainPtr, but never null. Also use some Clang attribute wizardry to get a warning for use-after-move. --- Kernel/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/init.cpp') 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 new_procfs = ProcFS::create(); new_procfs->initialize(); auto devptsfs = DevPtsFS::create(); -- cgit v1.2.3