diff --git a/util/filelock_test.cc b/util/filelock_test.cc index 7a41449bf9..f779a8b2ba 100644 --- a/util/filelock_test.cc +++ b/util/filelock_test.cc @@ -95,7 +95,6 @@ class LockTest : public testing::Test { // parent process int status; while (-1 == waitpid(pid, &status, 0)) { - ; } if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { // child process exited with non success status diff --git a/utilities/fault_injection_env.h b/utilities/fault_injection_env.h index 3536582227..5612718c6c 100644 --- a/utilities/fault_injection_env.h +++ b/utilities/fault_injection_env.h @@ -90,7 +90,7 @@ class TestWritableFile : public WritableFile { const DataVerificationInfo& /*verification_info*/) override { return PositionedAppend(data, offset); } - bool use_direct_io() const override { return target_->use_direct_io(); }; + bool use_direct_io() const override { return target_->use_direct_io(); } uint64_t GetFileSize() final { return target_->GetFileSize(); } private: @@ -117,7 +117,7 @@ class TestRandomRWFile : public RandomRWFile { size_t GetRequiredBufferAlignment() const override { return target_->GetRequiredBufferAlignment(); } - bool use_direct_io() const override { return target_->use_direct_io(); }; + bool use_direct_io() const override { return target_->use_direct_io(); } private: std::unique_ptr target_;