summaryrefslogtreecommitdiff
path: root/js/src/gc/StoreBuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/gc/StoreBuffer.h')
-rw-r--r--js/src/gc/StoreBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/gc/StoreBuffer.h b/js/src/gc/StoreBuffer.h
index f9158ef9c2..053a203f65 100644
--- a/js/src/gc/StoreBuffer.h
+++ b/js/src/gc/StoreBuffer.h
@@ -79,7 +79,7 @@ class StoreBuffer
explicit MonoTypeBuffer() : last_(T()) {}
~MonoTypeBuffer() { stores_.finish(); }
- MOZ_MUST_USE bool init() {
+ [[nodiscard]] bool init() {
if (!stores_.initialized() && !stores_.init())
return false;
clear();
@@ -146,7 +146,7 @@ class StoreBuffer
explicit GenericBuffer() : storage_(nullptr) {}
~GenericBuffer() { js_delete(storage_); }
- MOZ_MUST_USE bool init() {
+ [[nodiscard]] bool init() {
if (!storage_)
storage_ = js_new<LifoAlloc>(LifoAllocBlockSize);
clear();
@@ -387,7 +387,7 @@ class StoreBuffer
{
}
- MOZ_MUST_USE bool enable();
+ [[nodiscard]] bool enable();
void disable();
bool isEnabled() const { return enabled_; }