From: Andrew Gallagher Date: Sun, 10 Dec 2017 08:55:21 +0000 (-0800) Subject: Fix some clang build failures on aarch64 X-Git-Tag: v2017.12.11.00~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=90ce64f987677e11200729afa6bb9c4b64caf01e;p=folly.git Fix some clang build failures on aarch64 Reviewed By: Orvid Differential Revision: D6387412 fbshipit-source-id: 4c1424ed4fa49e69885de8cd72e78169314fc502 --- diff --git a/folly/hash/Checksum.cpp b/folly/hash/Checksum.cpp index 54d6bf11..09a48caf 100644 --- a/folly/hash/Checksum.cpp +++ b/folly/hash/Checksum.cpp @@ -72,8 +72,10 @@ bool crc32_hw_supported() { #else -uint32_t crc32_hw(const uint8_t *data, size_t nbytes, - uint32_t startingChecksum) { +uint32_t crc32_hw( + const uint8_t* /* data */, + size_t /* nbytes */, + uint32_t /* startingChecksum */) { throw std::runtime_error("crc32_hw is not implemented on this platform"); } diff --git a/folly/hash/detail/Crc32cDetail.cpp b/folly/hash/detail/Crc32cDetail.cpp index f0b00f6c..9bc89ba4 100644 --- a/folly/hash/detail/Crc32cDetail.cpp +++ b/folly/hash/detail/Crc32cDetail.cpp @@ -288,7 +288,8 @@ uint32_t crc32c_hw(const uint8_t* buf, size_t len, uint32_t crc) { #else -uint32_t crc32c_hw(const uint8_t* buf, size_t len, uint32_t crc) { +uint32_t +crc32c_hw(const uint8_t* /* buf */, size_t /* len */, uint32_t /* crc */) { throw std::runtime_error("crc32_hw is not implemented on this platform"); }