From a631c82882b039f8467a2ef9abeb343f2ec5b3da Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Oct 2017 21:27:54 +0100 Subject: Fix -Wundefined-bool-conversion compile failure of master branch Master build fails with: lib/common/Timer.cpp:171:10: error: reference cannot be bound to dereferenced null pointer in well-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]. Cannot get regtests to pass on this feature branch without fixing this. Also remove unused code from Timers. --- lib/bbackupd/BackupDaemon.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/bbackupd') diff --git a/lib/bbackupd/BackupDaemon.cpp b/lib/bbackupd/BackupDaemon.cpp index 3427a722..996c1919 100644 --- a/lib/bbackupd/BackupDaemon.cpp +++ b/lib/bbackupd/BackupDaemon.cpp @@ -922,8 +922,6 @@ std::auto_ptr BackupDaemon::GetNewContext // it, let it be destroyed and close the connection. std::auto_ptr BackupDaemon::RunSyncNow() { - Timers::AssertInitialised(); - // Delete the serialised store object file, // so that we don't try to reload it after a // partially completed backup -- cgit v1.2.3