mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Remove NODISCARD
This commit is contained in:
parent
4848e71107
commit
79bff8e48a
1 changed files with 0 additions and 13 deletions
|
@ -6,19 +6,6 @@
|
||||||
#ifndef BITCOIN_ATTRIBUTES_H
|
#ifndef BITCOIN_ATTRIBUTES_H
|
||||||
#define 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 defined(__clang__)
|
||||||
# if __has_attribute(lifetimebound)
|
# if __has_attribute(lifetimebound)
|
||||||
# define LIFETIMEBOUND [[clang::lifetimebound]]
|
# define LIFETIMEBOUND [[clang::lifetimebound]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue