mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Merge #12963: Fix Clang Static Analyzer warnings
159c32d1f1Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance. (practicalswift)fd447a6efeFix dead stores. Values were stored but never read. Limit scope. (practicalswift) Pull request description: Fix Clang Static Analyzer warnings reported by @kallewoof in #12961: * Fix dead stores. Values were stored but never read. * Add assertion to guide static analyzers. See #12961 for details. Tree-SHA512: 83dbec821f45217637316bee978e7543f2d2caeb7f7b0b3aec107fede0fff8baa756da8f6b761ae0d38537740839ac9752f6689109c38a4b05c0c041aaa3a1fb
This commit is contained in:
@@ -1065,6 +1065,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);
|
||||
|
||||
Reference in New Issue
Block a user