1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Clean up compiler warnings + Build pzstd on travis

This commit is contained in:
Nick Terrell
2016-09-02 12:23:49 -07:00
parent 5b8c024716
commit 1e2f6a1f5d
4 changed files with 6 additions and 7 deletions

View File

@ -9,6 +9,7 @@
#pragma once
#include <atomic>
#include <cassert>
#include <stdexcept>
#include <string>
@ -47,9 +48,7 @@ class ErrorHolder {
}
~ErrorHolder() {
if (hasError()) {
throw std::logic_error(message_);
}
assert(!hasError());
}
};
}