]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix `deflate_state` alignment with MS or clang-cl compilers
authorPavel P <pavlov.pavel@gmail.com>
Sun, 11 Feb 2024 15:02:37 +0000 (17:02 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 15 Feb 2024 15:13:06 +0000 (16:13 +0100)
commit0456bce1cc3097db0db6db8568f9ff222683d64e
tree96426f66aa452d6063355f339de495344ec29069
parent3ac71d9e2f860ac3634b43a99892255eb39179cf
Fix `deflate_state` alignment with MS or clang-cl compilers

When building with clang-cl, compiler produces the following warning:

zlib-ng/deflate.h(287,3): warning : attribute 'align' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
zlib-ng/zbuild.h(196,34): note: expanded from macro 'ALIGNED_'

Repositioning align attribute after "struct" fixes the warning and aligns `deflate_state` correctly.
deflate.h