diff options
author | Moonchild <moonchild@palemoon.org> | 2023-11-05 12:38:11 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-11-08 13:50:54 +0100 |
commit | 3dfad036497d3de429adfb7b72fc1a6fe5ec0ac6 (patch) | |
tree | 584a551ed0b263129b1dd47e694ed5f9feaf2406 | |
parent | 190e7bd30a8df5bfa8e1aba0210f2b67a3b0120d (diff) | |
download | uxp-3dfad036497d3de429adfb7b72fc1a6fe5ec0ac6.tar.gz |
Issue #2342: Remove MOZ_MUST_USE macro
-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 /** |