Fix some clang build failures on aarch64
authorAndrew Gallagher <andrewjcg@fb.com>
Sun, 10 Dec 2017 08:55:21 +0000 (00:55 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 10 Dec 2017 09:05:22 +0000 (01:05 -0800)
Reviewed By: Orvid

Differential Revision: D6387412

fbshipit-source-id: 4c1424ed4fa49e69885de8cd72e78169314fc502

folly/hash/Checksum.cpp
folly/hash/detail/Crc32cDetail.cpp

index 54d6bf1182902e63beb6c34bfb68b0e01e6cbfd3..09a48caf1272a23257305328f507d47f18b58bd0 100644 (file)
@@ -72,8 +72,10 @@ bool crc32_hw_supported() {
 
 #else
 
 
 #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");
 }
 
   throw std::runtime_error("crc32_hw is not implemented on this platform");
 }
 
index f0b00f6c65fee95b1e135871efae1454a9e9d283..9bc89ba46aa86d22442167989a8df1a3d4a43187 100644 (file)
@@ -288,7 +288,8 @@ uint32_t crc32c_hw(const uint8_t* buf, size_t len, uint32_t crc) {
 
 #else
 
 
 #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");
 }
 
   throw std::runtime_error("crc32_hw is not implemented on this platform");
 }