[PATCH v2] Silence misguided GCC warning about alignment issues
Denys Vlasenko
vda.linux at googlemail.com
Thu Aug 10 10:31:38 UTC 2017
On Mon, Aug 7, 2017 at 10:58 PM, Johannes Schindelin
<johannes.schindelin at gmx.de> wrote:
> +++ b/archival/libarchive/decompress_unxz.c
> @@ -37,6 +37,11 @@ static uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)
> || !defined(put_unaligned_be32)
> # error get_unaligned_le32 accessors are not defined
> #endif
> +static ALWAYS_INLINE uint32_t get_le32_fast(const void *p)
> +{
> + return *(uint32_t *)p;
> +}
> +#define get_le32 get_le32_fast
It misses little-endian conversion.
More information about the busybox
mailing list