summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-11 18:12:03 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-11 18:12:03 (GMT)
commit9443f3d9244faedb08527bf684994a0495117833 (patch)
tree43d3588479b11570f8eb7e2422d6a375490e1306 /lib/lz4.h
parent973e385fa332485f4617cf16406a8c8ef631a555 (diff)
downloadlz4-9443f3d9244faedb08527bf684994a0495117833.zip
lz4-9443f3d9244faedb08527bf684994a0495117833.tar.gz
lz4-9443f3d9244faedb08527bf684994a0495117833.tar.bz2
Extended obsolete warning messages to lz4hc
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index 7bd4594..0ee1a1e 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -280,9 +280,14 @@ int LZ4_decompress_fast_usingDict (const char* source, char* dest, int originalS
/**************************************
* Obsolete Functions
**************************************/
-/* Warning statements */
-#ifndef _WARNING_STATEMENT_BLOCK
-# define _WARNING_STATEMENT_BLOCK
+/* Deprecate Warnings */
+/* Should these warnings messages be a problem,
+ it is generally possible to disable them,
+ with -Wno-deprecated-declarations for gcc
+ or _CRT_SECURE_NO_WARNINGS in Visual for example.
+ You can also define _DEPRECATE_WARNING_DEFBLOCK. */
+#ifndef _DEPRECATE_WARNING_DEFBLOCK
+# define _DEPRECATE_WARNING_DEFBLOCK
# define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
# if (GCC_VERSION >= 405) || defined(__clang__)
# define DEPRECATED(message) __attribute__((deprecated(message)))
@@ -294,7 +299,7 @@ int LZ4_decompress_fast_usingDict (const char* source, char* dest, int originalS
# pragma message("WARNING: You need to implement DEPRECATED for this compiler")
# define DEPRECATED
# endif
-#endif // _WARNING_STATEMENT_BLOCK
+#endif // _DEPRECATE_WARNING_DEFBLOCK
/* Obsolete compression functions */
/* These functions are planned to generate warnings by r131 approximately */