From fd1fe53b4947bbf241fd121cb5fd313b79f1c2d2 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 5 Feb 2016 14:30:37 -0600 Subject: [PATCH] Use the EPICS_DEPRECATED macro from Base. Neither USAGE_DEPRECATED nor USAGE_ERROR are currently used in the V4 code-base. --- src/pv/pvData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pv/pvData.h b/src/pv/pvData.h index 0f2605d..796abd6 100644 --- a/src/pv/pvData.h +++ b/src/pv/pvData.h @@ -33,11 +33,11 @@ typedef class std::ios std::ios_base; #endif +#define USAGE_DEPRECATED EPICS_DEPRECATED + #if defined(__GNUC__) && !(defined(vxWorks) && !defined(_WRS_VXWORKS_MAJOR)) -#define USAGE_DEPRECATED __attribute__((deprecated)) #define USAGE_ERROR(MSG) __attribute__((error(MSG))) #else -#define USAGE_DEPRECATED #define USAGE_ERROR(MSG) { throw std::runtime_error(MSG); } #endif