From: Pavel P Date: Sun, 11 Feb 2024 15:33:03 +0000 (+0200) Subject: Increase alignment from 8 to 16 to avoid warnings with ms compiler X-Git-Tag: 2.2.0~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7745c28dbe012061e11a8480c6efb46b0cf7ac6b;p=thirdparty%2Fzlib-ng.git Increase alignment from 8 to 16 to avoid warnings with ms compiler Fixing align attribute, makes ms compiler warn: 'internal_state': Alignment specifier is less than actual alignment (16), and will be ignored. Increasing alignemnt fixes the warning --- diff --git a/deflate.h b/deflate.h index 0a1d34e1..b96ee072 100644 --- a/deflate.h +++ b/deflate.h @@ -117,7 +117,7 @@ typedef uint32_t (* update_hash_cb) (deflate_state *const s, uint32_t h, typedef void (* insert_string_cb) (deflate_state *const s, uint32_t str, uint32_t count); typedef Pos (* quick_insert_string_cb)(deflate_state *const s, uint32_t str); -struct ALIGNED_(8) internal_state { +struct ALIGNED_(16) internal_state { PREFIX3(stream) *strm; /* pointer back to this zlib stream */ unsigned char *pending_buf; /* output still pending */ unsigned char *pending_out; /* next pending byte to output to the stream */