diff options
author | Chris Wilson <chris+github@qwirx.com> | 2017-10-12 21:27:54 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2017-10-16 22:02:32 +0100 |
commit | a631c82882b039f8467a2ef9abeb343f2ec5b3da (patch) | |
tree | b0ae4a2304e386aef4ef031b9d565116e0fa7f02 /lib/bbackupd/BackupDaemon.cpp | |
parent | fea4efbf5648dddb63f51b4b076baceb872be87b (diff) |
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.
Diffstat (limited to 'lib/bbackupd/BackupDaemon.cpp')
-rw-r--r-- | lib/bbackupd/BackupDaemon.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<BackupClientContext> BackupDaemon::GetNewContext // it, let it be destroyed and close the connection. std::auto_ptr<BackupClientContext> BackupDaemon::RunSyncNow() { - Timers::AssertInitialised(); - // Delete the serialised store object file, // so that we don't try to reload it after a // partially completed backup |