Kernel: Mark kernel smart-pointer classes as [[nodiscard]]

And cast the unused return values to void.
This commit is contained in:
Sam Atkins 2021-12-03 10:23:09 +00:00 committed by Andreas Kling
commit c6a97ea843
Notes: sideshowbarker 2024-07-17 23:08:30 +09:00
10 changed files with 14 additions and 12 deletions

View file

@ -117,7 +117,7 @@ struct RefPtrTraits {
};
template<typename T, typename PtrTraits>
class RefPtr {
class [[nodiscard]] RefPtr {
template<typename U, typename P>
friend class RefPtr;
template<typename U>