From bae3a73ceea6163eeb6eae59dfcf838a43048831 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 26 Jul 2013 16:25:37 -0400 Subject: [PATCH] libarchive: Silence API deprecation warnings CMake uses old libarchive APIs for now. --- Utilities/cmlibarchive/libarchive/archive.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Utilities/cmlibarchive/libarchive/archive.h b/Utilities/cmlibarchive/libarchive/archive.h index f8669785c..1a1d32a6d 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" {