]> git.ipfire.org Git - thirdparty/xz.git/commit
liblzma: Prevent an empty translation unit in Windows builds.
authorJia Tan <jiat0218@gmail.com>
Mon, 24 Jul 2023 13:43:44 +0000 (21:43 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 12:28:35 +0000 (15:28 +0300)
commit9d4bf2d06f6a85fd107f2d58c744fe4880dd4b02
tree1578ac1632985cc3c8a04d7eaa1574548405ce43
parent5a87d91321b73ccb60381c808da3cdc1554ae3ca
liblzma: Prevent an empty translation unit in Windows builds.

To workaround Automake lacking Windows resource compiler support, an
empty source file is compiled to overwrite the resource files for static
library builds. Translation units without an external declaration are
not allowed by the C standard and result in a warning when used with
-Wempty-translation-unit (Clang) or -pedantic (GCC).

(cherry picked from commit 19899340cf74d98304f9f5b726c72e85c7017d72)
src/liblzma/Makefile.am