summaryrefslogtreecommitdiff
path: root/examples/portab.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-06-22 16:59:51 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-06-22 16:59:57 +0900
commit57de6cacd32854c3b7942dde1803894341f78cee (patch)
treeba55c881a740c59ea9443a139e4c4ae91e44e95d /examples/portab.h
parent8ff61daa672f051d8ecb537edc94036b6cdaaf3f (diff)
downloadlzo-57de6cacd32854c3b7942dde1803894341f78cee.tar.gz
lzo-57de6cacd32854c3b7942dde1803894341f78cee.tar.bz2
lzo-57de6cacd32854c3b7942dde1803894341f78cee.zip
Imported Upstream version 2.10upstream/2.10upstream
Change-Id: Ic72ac9c6134dff3a335d581378095e0011abcb08 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'examples/portab.h')
-rw-r--r--examples/portab.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/portab.h b/examples/portab.h
index 3c22068..93db56a 100644
--- a/examples/portab.h
+++ b/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;