mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
liblzma: Update a comment.
The C standards don't allow an empty translation unit which can be
avoided by declaring something, without exporting any symbols.
When I committed f644473a21
I had
a feeling that some specific toolchain somewhere didn't like
empty object files (assembler or maybe "ar" complained) but
I cannot find anything to confirm this now. Quite likely I
remembered nonsense. I leave this here as a note to my future self. :-)
This commit is contained in:
parent
8ebaf3f665
commit
5a9af95f85
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@
|
||||||
#if (defined(__x86_64__) && defined(__SSSE3__) \
|
#if (defined(__x86_64__) && defined(__SSSE3__) \
|
||||||
&& defined(__SSE4_1__) && defined(__PCLMUL__)) \
|
&& defined(__SSE4_1__) && defined(__PCLMUL__)) \
|
||||||
|| (defined(__e2k__) && __iset__ >= 6)
|
|| (defined(__e2k__) && __iset__ >= 6)
|
||||||
// No table needed but something has to be exported to keep some toolchains
|
// No table needed. Use a typedef to avoid an empty translation unit.
|
||||||
// happy. Also use a declaration to silence compiler warnings.
|
|
||||||
typedef void lzma_crc64_dummy;
|
typedef void lzma_crc64_dummy;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue