]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: slz: silence a build warning on non-x86 non-arm
authorWilly Tarreau <w@1wt.eu>
Fri, 16 May 2025 14:19:04 +0000 (16:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 May 2025 14:43:53 +0000 (16:43 +0200)
commitccc65012d35908f36d9516420203f3a2fd808052
treeba3ad55656b3270a340a0aa7061aafd501eaf803
parent31ca29eee173d4d41d32f81607b4bb6b493ee236
IMPORT: slz: silence a build warning on non-x86 non-arm

Building with clang 16 on MIPS64 yields this warning:

  src/slz.c:931:24: warning: unused function 'crc32_uint32' [-Wunused-function]
  static inline uint32_t crc32_uint32(uint32_t data)
                         ^

Let's guard it using UNALIGNED_LE_OK which is the only case where it's
used. This saves us from introducing a possibly non-portable attribute.

This is libslz upstream commit f5727531dba8906842cb91a75c1ffa85685a6421.
src/slz.c