Skip to content

Commit 88331aa

Browse files
committed
Merge #21633: refactor: add [[noreturn]] attribute where applicable
003929c 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: ACK 003929c Tree-SHA512: 33dfa6547d6b84f38a941f24d4c2effe8fde7b93dbc0b27a9309716420e4a879fdbe689d789fa5439d65f5f78292f89fd9dc1b61c97acf69316dfed954086705
2 parents 3aa4935 + 003929c commit 88331aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/util_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ static constexpr char LockCommand = 'L';
17661766
static constexpr char UnlockCommand = 'U';
17671767
static constexpr char ExitCommand = 'X';
17681768

1769-
static void TestOtherProcess(fs::path dirname, std::string lockname, int fd)
1769+
[[noreturn]] static void TestOtherProcess(fs::path dirname, std::string lockname, int fd)
17701770
{
17711771
char ch;
17721772
while (true) {

0 commit comments

Comments
 (0)