summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-11-26 12:40:41 +0200
committerMonty <monty@mariadb.org>2020-11-26 19:13:37 +0200
commit1555c6d1251a79ec7194803b8f2be8bc37b18ae5 (patch)
tree57c954068aa064f305f75dc3f7762ef725d2f5f5 /mysys
parent279b5f87de44817fe14509b9d880a84d8730bc42 (diff)
downloadmariadb-git-1555c6d1251a79ec7194803b8f2be8bc37b18ae5.tar.gz
Fixed compiler warnings from crc32c.cc
Diffstat (limited to 'mysys')
-rw-r--r--mysys/crc32/crc32c.cc13
1 files changed, 7 insertions, 6 deletions
diff --git a/mysys/crc32/crc32c.cc b/mysys/crc32/crc32c.cc
index 4eaceb8c438..c0f8c518691 100644
--- a/mysys/crc32/crc32c.cc
+++ b/mysys/crc32/crc32c.cc
@@ -26,11 +26,6 @@ static inline uint32_t DecodeFixed32(const char *ptr)
return uint4korr(ptr);
}
-static inline uint64_t DecodeFixed64(const char *ptr)
-{
- return uint8korr(ptr);
-}
-
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h>
@@ -343,6 +338,12 @@ static inline uint32_t LE_LOAD32(const uint8_t *p) {
}
#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) {
return DecodeFixed64(reinterpret_cast<const char*>(p));
}
@@ -364,7 +365,7 @@ static inline void Slow_CRC32(uint64_t* l, uint8_t const **p) {
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
Slow_CRC32(l, p);
#elif (SIZEOF_SIZE_T == 8)