summaryrefslogtreecommitdiff
path: root/main/lzo/examples/portab.h
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2017-06-22 18:33:26 +0200
committerArne Schwabe <arne@rfc2549.org>2017-06-22 18:33:26 +0200
commit6c12bd2094234edc1a129969b89cf45b1da889bd (patch)
treea39b3af9ad861334a844035d4d88232c8f9ed0ec /main/lzo/examples/portab.h
parentf35afa13da08a058bc28ca0e535e044093148e3a (diff)
Update lzo to 2.10
Diffstat (limited to 'main/lzo/examples/portab.h')
-rw-r--r--main/lzo/examples/portab.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/lzo/examples/portab.h b/main/lzo/examples/portab.h
index 3c220689..93db56a9 100644
--- a/main/lzo/examples/portab.h
+++ b/main/lzo/examples/portab.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -39,7 +39,9 @@
# pragma warning(disable: 4710 4711)
#endif
/* disable silly warnings about using "deprecated" POSIX functions like "fopen" */
-#if (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1100))
+#if (LZO_CC_CLANG_MSC && LZO_CC_CLANG >= 0x030500)
+# pragma clang diagnostic ignored "-Wdeprecated-declarations"
+#elif (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1100))
# pragma warning(disable: 1786)
#elif (LZO_CC_INTELC_MSC && (__INTEL_COMPILER >= 1000))
# pragma warning(disable: 1478)
@@ -131,6 +133,7 @@ static lzo_voidp xmalloc(lzo_uint len)
if (len >= align && __lzo_align_gap(p, align) != 0)
{
printf("%s: C library problem: malloc() returned misaligned pointer!\n", progname);
+ lzo_free(p);
exit(1);
}
return p;