diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-11 01:55:07 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-11 01:55:07 +0000 |
commit | c789882a294d29b3e5450a972ad67c4839c75e23 (patch) | |
tree | 4234880ff76df9da2caaf06983da144e42032a09 /mfbt/Attributes.h | |
parent | 93eee35e84c29e1e64cb1531a0830b8ab2a7c5fa (diff) | |
parent | f9ad6258221d89d8ee8e543c2ff8b21a42dbd285 (diff) | |
download | uxp-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/Attributes.h')
-rw-r--r-- | mfbt/Attributes.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/mfbt/Attributes.h b/mfbt/Attributes.h index f5572e1861..fdd253d357 100644 --- a/mfbt/Attributes.h +++ b/mfbt/Attributes.h @@ -236,25 +236,6 @@ # define MOZ_ALLOCATOR #endif -/** - * MOZ_MUST_USE tells the compiler to emit a warning if a function's - * return value is not used by the caller. - * - * Place this attribute at the very beginning of a function declaration. For - * example, write - * - * MOZ_MUST_USE int foo(); - * - * or - * - * MOZ_MUST_USE int foo() { return 42; } - */ -#if defined(__GNUC__) || defined(__clang__) -# define MOZ_MUST_USE __attribute__ ((warn_unused_result)) -#else -# define MOZ_MUST_USE -#endif - #ifdef __cplusplus /** |