Skip to content

Commit

Permalink
Merge bitcoin#21633: refactor: add [[noreturn]] attribute where appli…
Browse files Browse the repository at this point in the history
…cable

003929c refactor: add [[noreturn]] attribute where applicable (fanquake)

Pull request description:

  Similar to bitcoin#10843. We could build with `-Wmissing-noreturn`, however that would also mean modifying something like `--suppress-external-warnings` to suppress warnings for leveldb, which I don't think we want to do. In any case, the functions where this is applicable are only added/removed very rarely.

ACKs for top commit:
  vasild:
    ACK 003929c

Tree-SHA512: 33dfa6547d6b84f38a941f24d4c2effe8fde7b93dbc0b27a9309716420e4a879fdbe689d789fa5439d65f5f78292f89fd9dc1b61c97acf69316dfed954086705
  • Loading branch information
fanquake authored and PastaPastaPasta committed Jul 1, 2021
1 parent 8fc4703 commit 53b4259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/util_tests.cpp
Expand Up @@ -1069,7 +1069,7 @@ static constexpr char LockCommand = 'L';
static constexpr char UnlockCommand = 'U';
static constexpr char ExitCommand = 'X';

static void TestOtherProcess(fs::path dirname, std::string lockname, int fd)
[[noreturn]] static void TestOtherProcess(fs::path dirname, std::string lockname, int fd)
{
char ch;
while (true) {
Expand Down

0 comments on commit 53b4259

Please sign in to comment.