From 3dfad036497d3de429adfb7b72fc1a6fe5ec0ac6 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 5 Nov 2023 12:38:11 +0100 Subject: Issue #2342: Remove MOZ_MUST_USE macro --- mfbt/Attributes.h | 19 ------------------- 1 file changed, 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 /** -- cgit v1.2.3