aboutsummaryrefslogtreecommitdiff
path: root/src/attributes.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-11-26 09:07:33 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-11-26 09:07:33 +0000
commit79bff8e48aca961ec271b0d592aca9278b981e2f (patch)
tree7f6c82361d24c13f0c815f9d98dcd51521d12308 /src/attributes.h
parent4848e711076c6ebc5d841feb83baeb6d2bc76c94 (diff)
downloadbitcoin-79bff8e48aca961ec271b0d592aca9278b981e2f.tar.xz
Remove NODISCARD
Diffstat (limited to 'src/attributes.h')
-rw-r--r--src/attributes.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/attributes.h b/src/attributes.h
index 9d5c1d44a0..995c24e13f 100644
--- a/src/attributes.h
+++ b/src/attributes.h
@@ -6,19 +6,6 @@
#ifndef BITCOIN_ATTRIBUTES_H
#define BITCOIN_ATTRIBUTES_H
-#if defined(__has_cpp_attribute)
-# if __has_cpp_attribute(nodiscard)
-# define NODISCARD [[nodiscard]]
-# endif
-#endif
-#ifndef NODISCARD
-# if defined(_MSC_VER) && _MSC_VER >= 1700
-# define NODISCARD _Check_return_
-# else
-# define NODISCARD __attribute__((warn_unused_result))
-# endif
-#endif
-
#if defined(__clang__)
# if __has_attribute(lifetimebound)
# define LIFETIMEBOUND [[clang::lifetimebound]]