diff options
author | Yann Collet <cyan@fb.com> | 2019-04-04 19:47:36 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-04 19:47:36 (GMT) |
commit | 7a39fb8fb69a47486b91810708bbe796331b26a2 (patch) | |
tree | 84216dd40a46c7d5728827ceaec64130022654e5 /lib/README.md | |
parent | ab913005093cb77d2efc430ba50636c2b8dea8d0 (diff) | |
download | lz4-7a39fb8fb69a47486b91810708bbe796331b26a2.zip lz4-7a39fb8fb69a47486b91810708bbe796331b26a2.tar.gz lz4-7a39fb8fb69a47486b91810708bbe796331b26a2.tar.bz2 |
make `_fast*()` decoder generate a deprecation warning
updated modification
Diffstat (limited to 'lib/README.md')
-rw-r--r-- | lib/README.md | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/README.md b/lib/README.md index e9b221f..be8eba0 100644 --- a/lib/README.md +++ b/lib/README.md @@ -7,8 +7,8 @@ not all of them are necessary. #### Minimal LZ4 build The minimum required is **`lz4.c`** and **`lz4.h`**, -which provides the fast compression and decompression algorithm. -They generate and decode data using [LZ4 block format]. +which provides the fast compression and decompression algorithms. +They generate and decode data using the [LZ4 block format]. #### High Compression variant @@ -49,9 +49,17 @@ The following build macro can be determined at compilation time : - `LZ4_FAST_DEC_LOOP` : this triggers the optimized decompression loop. This loops works great on x86/x64 cpus, and is automatically enabled on this platform. It's possible to enable or disable it manually, by passing `LZ4_FAST_DEC_LOOP=1` or `0` to the preprocessor. - Typically with `gcc` : `-DLZ4_FAST_DEC_LOOP=1`, + For example, with `gcc` : `-DLZ4_FAST_DEC_LOOP=1`, and with `make` : `CPPFLAGS+=-DLZ4_FAST_DEC_LOOP=1 make lz4`. +- `LZ4_DISABLE_DEPRECATE_WARNINGS` : invoking a deprecated function will make the compiler generate a warning. + This is meant to invite users to update their source code. + Should this be a problem, it's generally to make the compiler ignore these warnings, + for example with `-Wno-deprecated-declarations` on `gcc`, + or `_CRT_SECURE_NO_WARNINGS` for Visual Studio. + Another method is to define `LZ4_DISABLE_DEPRECATE_WARNINGS` + before including the LZ4 header files. + #### Amalgamation |