diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-12 08:25:45 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-12 14:37:53 +0200 |
commit | fd447a6efea84d7215ab471bf04284f060e9e3c3 (patch) | |
tree | f58cca37a6ab5e6a8ed228fa1370eaeba2d72aa4 /src/test | |
parent | 39439e5ab4195bb1abebd2c8b1ac702bc33c2e60 (diff) | |
download | bitcoin-fd447a6efea84d7215ab471bf04284f060e9e3c3.tar.xz |
Fix dead stores. Values were stored but never read. Limit scope.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index d41c43a795..b082f0f2ab 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -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); |