summaryrefslogtreecommitdiff
path: root/mfbt/Attributes.h
diff options
context:
space:
mode:
Diffstat (limited to 'mfbt/Attributes.h')
-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
/**