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:
@ -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());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user