add noexcepts (#2119)
Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
@@ -101,7 +101,7 @@ std::string decompress(const std::string &raw, int windowBits) {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::uint32_t crc32(const void *raw, size_t size) {
|
||||
std::uint32_t crc32(const void *raw, size_t size) noexcept {
|
||||
auto hash = ::crc32(0L, Z_NULL, 0);
|
||||
if (raw) {
|
||||
const auto *p = static_cast<const Bytef *>(raw);
|
||||
|
||||
Reference in New Issue
Block a user