diff options
Diffstat (limited to 'js/src/threading/Thread.h')
-rw-r--r-- | js/src/threading/Thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/threading/Thread.h b/js/src/threading/Thread.h index c48f4af80f..7d9f560407 100644 --- a/js/src/threading/Thread.h +++ b/js/src/threading/Thread.h @@ -105,7 +105,7 @@ public: // result in the value being copied, which may not be the intended behavior. // See the comment below on ThreadTrampoline::args for an explanation. template <typename F, typename... Args> - MOZ_MUST_USE bool init(F&& f, Args&&... args) { + [[nodiscard]] bool init(F&& f, Args&&... args) { MOZ_RELEASE_ASSERT(!joinable()); using Trampoline = detail::ThreadTrampoline<F, Args...>; AutoEnterOOMUnsafeRegion oom; @@ -163,7 +163,7 @@ private: Options options_; // Dispatch to per-platform implementation of thread creation. - MOZ_MUST_USE bool create(THREAD_RETURN_TYPE (THREAD_CALL_API *aMain)(void*), void* aArg); + [[nodiscard]] bool create(THREAD_RETURN_TYPE (THREAD_CALL_API *aMain)(void*), void* aArg); }; namespace ThisThread { |