mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Kernel: Mark kernel smart-pointer classes as [[nodiscard]]
And cast the unused return values to void.
This commit is contained in:
parent
5013a6480d
commit
c6a97ea843
10 changed files with 14 additions and 12 deletions
|
@ -476,7 +476,7 @@ void UHCIController::spawn_port_proc()
|
|||
if (process_name.is_error())
|
||||
TODO();
|
||||
|
||||
Process::create_kernel_process(usb_hotplug_thread, process_name.release_value(), [&] {
|
||||
(void)Process::create_kernel_process(usb_hotplug_thread, process_name.release_value(), [&] {
|
||||
for (;;) {
|
||||
if (m_root_hub)
|
||||
m_root_hub->check_for_port_updates();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue