diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-11-26 09:07:33 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-11-26 09:07:33 +0000 |
commit | 79bff8e48aca961ec271b0d592aca9278b981e2f (patch) | |
tree | 7f6c82361d24c13f0c815f9d98dcd51521d12308 /src/attributes.h | |
parent | 4848e711076c6ebc5d841feb83baeb6d2bc76c94 (diff) |
Remove NODISCARD
Diffstat (limited to 'src/attributes.h')
-rw-r--r-- | src/attributes.h | 13 |
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]] |