Fix CI build

This commit is contained in:
Sebastian Messmer 2017-11-05 16:36:11 +00:00
parent 19e3433035
commit e318b4879b
4 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ references:
sudo chmod o-w /etc/apt/sources.list.d/clang.list
DEBIAN_FRONTEND=noninteractive sudo apt-get update -qq
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git ccache $APT_COMPILER_PACKAGE cmake make libcurl4-openssl-dev libcrypto++-dev libssl-dev libfuse-dev python clang-tidy
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y git ccache $APT_COMPILER_PACKAGE cmake make libcurl4-openssl-dev libcrypto++-dev libssl-dev libfuse-dev python
# Use /dev/urandom when /dev/random is accessed to use less entropy
sudo cp -a /dev/urandom /dev/random

View File

@ -16,7 +16,7 @@ public:
explicit CacheEntry(Value value): _lastAccess(currentTime()), _value(std::move(value)) {
}
CacheEntry(CacheEntry &&) noexcept = default;
CacheEntry(CacheEntry&& rhs) noexcept: _lastAccess(std::move(rhs._lastAccess)), _value(std::move(rhs._value)) {}
double ageSeconds() const {
return ((double)(currentTime() - _lastAccess).total_nanoseconds()) / ((double)1000000000);

View File

@ -9,7 +9,7 @@ namespace blockstore {
namespace integrity {
struct ClientIdAndBlockId final {
uint32_t clientId = 0;
uint32_t clientId;
BlockId blockId;
};

View File

@ -250,7 +250,7 @@ TEST_F(EitherTest, ModifyLeftOpt) {
TEST_F(EitherTest, ModifyRightOpt) {
either<int, string> val = string("mystring1");
val.right_opt().value() = "mystring2";
val.right_opt().get() = "mystring2";
EXPECT_RIGHT_IS("mystring2", val);
}