Skip to content

Commit 79bff8e

Browse files
Remove NODISCARD
1 parent 4848e71 commit 79bff8e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/attributes.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
#ifndef BITCOIN_ATTRIBUTES_H
77
#define BITCOIN_ATTRIBUTES_H
88

9-
#if defined(__has_cpp_attribute)
10-
# if __has_cpp_attribute(nodiscard)
11-
# define NODISCARD [[nodiscard]]
12-
# endif
13-
#endif
14-
#ifndef NODISCARD
15-
# if defined(_MSC_VER) && _MSC_VER >= 1700
16-
# define NODISCARD _Check_return_
17-
# else
18-
# define NODISCARD __attribute__((warn_unused_result))
19-
# endif
20-
#endif
21-
229
#if defined(__clang__)
2310
# if __has_attribute(lifetimebound)
2411
# define LIFETIMEBOUND [[clang::lifetimebound]]

0 commit comments

Comments
 (0)