]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Increase alignment from 8 to 16 to avoid warnings with ms compiler
authorPavel P <pavlov.pavel@gmail.com>
Sun, 11 Feb 2024 15:33:03 +0000 (17:33 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 15 Feb 2024 15:13:06 +0000 (16:13 +0100)
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

deflate.h

index 0a1d34e18ff243b06f38a0af3f55c6d0026e2753..b96ee0724c5539c32b03f071645a18fd99626fab 100644 (file)
--- 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 */