Fix dead stores. Values were stored but never read. Limit scope.

This commit is contained in:
practicalswift
2018-04-12 08:25:45 +02:00
parent 39439e5ab4
commit fd447a6efe
2 changed files with 5 additions and 11 deletions

View File

@@ -950,6 +950,7 @@ static void TestOtherProcess(fs::path dirname, std::string lockname, int fd)
ReleaseDirectoryLocks();
ch = true; // Always succeeds
rv = write(fd, &ch, 1);
assert(rv == 1);
break;
case ExitCommand:
close(fd);