summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-26 20:25:37 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-31 12:20:05 (GMT)
commitbae3a73ceea6163eeb6eae59dfcf838a43048831 (patch)
tree3e70f98d8a2fa00fdf9526c7dc77f245b2d835e0 /Utilities
parent677384017a343f1ca70342951a39302a683843a2 (diff)
downloadCMake-bae3a73ceea6163eeb6eae59dfcf838a43048831.zip
CMake-bae3a73ceea6163eeb6eae59dfcf838a43048831.tar.gz
CMake-bae3a73ceea6163eeb6eae59dfcf838a43048831.tar.bz2
libarchive: Silence API deprecation warnings
CMake uses old libarchive APIs for now.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h
index f866978..1a1d32a 100644
--- a/Utilities/cmlibarchive/libarchive/archive.h
+++ b/Utilities/cmlibarchive/libarchive/archive.h
@@ -104,11 +104,8 @@
#define __LA_PRINTF(fmtarg, firstvararg) /* nothing */
#endif
-#if defined(__GNUC__) && __GNUC__ >= 3 && __GNUC_MINOR__ >= 1
-# define __LA_DEPRECATED __attribute__((deprecated))
-#else
-# define __LA_DEPRECATED
-#endif
+/* CMake uses some deprecated APIs to build with old libarchive versions. */
+#define __LA_DEPRECATED
#ifdef __cplusplus
extern "C" {