refactor: add [[noreturn]] attribute where applicable

This commit is contained in:
fanquake
2021-04-07 20:35:31 +08:00
parent 89b72ce045
commit 003929c0d5

View File

@@ -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) {