summaryrefslogtreecommitdiff
path: root/mfbt/Assertions.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-11 01:55:07 +0000
committerMoonchild <moonchild@palemoon.org>2023-11-11 01:55:07 +0000
commitc789882a294d29b3e5450a972ad67c4839c75e23 (patch)
tree4234880ff76df9da2caaf06983da144e42032a09 /mfbt/Assertions.h
parent93eee35e84c29e1e64cb1531a0830b8ab2a7c5fa (diff)
parentf9ad6258221d89d8ee8e543c2ff8b21a42dbd285 (diff)
downloaduxp-c789882a294d29b3e5450a972ad67c4839c75e23.tar.gz
Merge pull request 'Replace MOZ_MUST_USE with [[nodiscard]]' (#2375) from 2342-nodiscard-work into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/2375
Diffstat (limited to 'mfbt/Assertions.h')
-rw-r--r--mfbt/Assertions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mfbt/Assertions.h b/mfbt/Assertions.h
index df41795c12..09a1b8eaa6 100644
--- a/mfbt/Assertions.h
+++ b/mfbt/Assertions.h
@@ -603,25 +603,25 @@ struct AssertionConditionType
# define MOZ_ALWAYS_TRUE(expr) \
do { \
if ((expr)) { \
- /* Silence MOZ_MUST_USE. */ \
+ /* Silence [[nodiscard]]. */ \
} \
} while (0)
# define MOZ_ALWAYS_FALSE(expr) \
do { \
if ((expr)) { \
- /* Silence MOZ_MUST_USE. */ \
+ /* Silence [[nodiscard]]. */ \
} \
} while (0)
# define MOZ_ALWAYS_OK(expr) \
do { \
if ((expr).isOk()) { \
- /* Silence MOZ_MUST_USE. */ \
+ /* Silence [[nodiscard]]. */ \
} \
} while (0)
# define MOZ_ALWAYS_ERR(expr) \
do { \
if ((expr).isErr()) { \
- /* Silence MOZ_MUST_USE. */ \
+ /* Silence [[nodiscard]]. */ \
} \
} while (0)
#endif