Skip to content

Commit

Permalink
Remove NODISCARD
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Nov 26, 2020
1 parent 4848e71 commit 79bff8e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 79bff8e

Please sign in to comment.