diff options
author | Yann Collet <cyan@fb.com> | 2016-11-14 18:02:01 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2016-11-14 18:02:01 (GMT) |
commit | fa158b4118f2d53f6e84ce6ce16aa8d3ccd8a11a (patch) | |
tree | a09e35aeb03b5c0ac386e9041b7cc63d82d2a7b1 /lib/lz4hc.h | |
parent | 84af32d491a23e2f160c215e53430c4a8b091cc9 (diff) | |
download | lz4-fa158b4118f2d53f6e84ce6ce16aa8d3ccd8a11a.zip lz4-fa158b4118f2d53f6e84ce6ce16aa8d3ccd8a11a.tar.gz lz4-fa158b4118f2d53f6e84ce6ce16aa8d3ccd8a11a.tar.bz2 |
fixed nameless union warnings
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r-- | lib/lz4hc.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h index 7adc8fa..d8ac3c0 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -83,7 +83,7 @@ LZ4LIB_API int LZ4_sizeofStateHC(void); * Streaming Compression * Bufferless synchronous API **************************************/ - typedef struct LZ4_streamHC_s LZ4_streamHC_t; /* incomplete type (defined later) */ + typedef union LZ4_streamHC_u LZ4_streamHC_t; /* incomplete type (defined later) */ /*! LZ4_createStreamHC() and LZ4_freeStreamHC() : * These functions create and release memory for LZ4 HC streaming state. @@ -176,11 +176,9 @@ typedef struct #define LZ4_STREAMHCSIZE 262192 #define LZ4_STREAMHCSIZE_SIZET (LZ4_STREAMHCSIZE / sizeof(size_t)) -struct LZ4_streamHC_s { - union { +union LZ4_streamHC_u { size_t table[LZ4_STREAMHCSIZE_SIZET]; LZ4HC_CCtx_internal internal_donotuse; - }; }; /* previously typedef'd to LZ4_streamHC_t */ /* LZ4_streamHC_t : |