summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-05 12:38:11 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-08 13:50:54 +0100
commit3dfad036497d3de429adfb7b72fc1a6fe5ec0ac6 (patch)
tree584a551ed0b263129b1dd47e694ed5f9feaf2406
parent190e7bd30a8df5bfa8e1aba0210f2b67a3b0120d (diff)
downloaduxp-3dfad036497d3de429adfb7b72fc1a6fe5ec0ac6.tar.gz
Issue #2342: Remove MOZ_MUST_USE macro
-rw-r--r--mfbt/Attributes.h19
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
/**