Commit 1555c6d1 authored by Monty's avatar Monty

Fixed compiler warnings from crc32c.cc

parent 279b5f87
...@@ -26,11 +26,6 @@ static inline uint32_t DecodeFixed32(const char *ptr) ...@@ -26,11 +26,6 @@ static inline uint32_t DecodeFixed32(const char *ptr)
return uint4korr(ptr); return uint4korr(ptr);
} }
static inline uint64_t DecodeFixed64(const char *ptr)
{
return uint8korr(ptr);
}
#include <stdint.h> #include <stdint.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <intrin.h> #include <intrin.h>
...@@ -343,6 +338,12 @@ static inline uint32_t LE_LOAD32(const uint8_t *p) { ...@@ -343,6 +338,12 @@ static inline uint32_t LE_LOAD32(const uint8_t *p) {
} }
#if defined(HAVE_SSE42) && (SIZEOF_SIZE_T == 8) #if defined(HAVE_SSE42) && (SIZEOF_SIZE_T == 8)
static inline uint64_t DecodeFixed64(const char *ptr)
{
return uint8korr(ptr);
}
static inline uint64_t LE_LOAD64(const uint8_t *p) { static inline uint64_t LE_LOAD64(const uint8_t *p) {
return DecodeFixed64(reinterpret_cast<const char*>(p)); return DecodeFixed64(reinterpret_cast<const char*>(p));
} }
...@@ -364,7 +365,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) { ...@@ -364,7 +365,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) {
table0_[c >> 24]; table0_[c >> 24];
} }
static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) { __attribute__((unused)) static inline void Fast_CRC32(uint64_t* l, uint8_t const **p) {
#ifndef HAVE_SSE42 #ifndef HAVE_SSE42
Slow_CRC32(l, p); Slow_CRC32(l, p);
#elif (SIZEOF_SIZE_T == 8) #elif (SIZEOF_SIZE_T == 8)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment