mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Merge #21633: refactor: add [[noreturn]] attribute where applicable
003929c0d5
refactor: add [[noreturn]] attribute where applicable (fanquake) Pull request description: Similar to #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: ACK003929c0d5
Tree-SHA512: 33dfa6547d6b84f38a941f24d4c2effe8fde7b93dbc0b27a9309716420e4a879fdbe689d789fa5439d65f5f78292f89fd9dc1b61c97acf69316dfed954086705
This commit is contained in:
commit
88331aa8a7
1 changed files with 1 additions and 1 deletions
|
@ -1766,7 +1766,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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue