From 90ce64f987677e11200729afa6bb9c4b64caf01e Mon Sep 17 00:00:00 2001 From: Andrew Gallagher Date: Sun, 10 Dec 2017 00:55:21 -0800 Subject: [PATCH] Fix some clang build failures on aarch64 Reviewed By: Orvid Differential Revision: D6387412 fbshipit-source-id: 4c1424ed4fa49e69885de8cd72e78169314fc502 --- folly/hash/Checksum.cpp | 6 ++++-- folly/hash/detail/Crc32cDetail.cpp | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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"); } -- 2.34.1