diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2016-11-21 20:24:50 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2016-12-28 19:59:32 +0200 |
commit | e013a337d3de77cce24360dffe956ea2339489b6 (patch) | |
tree | 3a0311088554a21f4cb19d98700e0f7b076a612a /src/liblzma/simple/arm.c | |
parent | Document --enable-sandbox configure option in INSTALL. (diff) | |
download | xz-e013a337d3de77cce24360dffe956ea2339489b6.tar.xz |
liblzma: Avoid multiple definitions of lzma_coder structures.
Only one definition was visible in a translation unit.
It avoided a few casts and temp variables but seems that
this hack doesn't work with link-time optimizations in compilers
as it's not C99/C11 compliant.
Fixes:
http://www.mail-archive.com/xz-devel@tukaani.org/msg00279.html
Diffstat (limited to 'src/liblzma/simple/arm.c')
-rw-r--r-- | src/liblzma/simple/arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/simple/arm.c b/src/liblzma/simple/arm.c index 258d870f..181d0e3b 100644 --- a/src/liblzma/simple/arm.c +++ b/src/liblzma/simple/arm.c @@ -15,7 +15,7 @@ static size_t -arm_code(lzma_simple *simple lzma_attribute((__unused__)), +arm_code(void *simple lzma_attribute((__unused__)), uint32_t now_pos, bool is_encoder, uint8_t *buffer, size_t size) { |