From 2b7b38a3c7cf22ea7bf178ce41f48da8d0fb2474 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 21 Apr 2016 15:52:34 -0500 Subject: [PATCH] Use EPICS_DEPRECATED macro Don't print error messages when a deprecated function is called, make it a compile-time warning instead. --- src/pv/pvaClient.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pv/pvaClient.h b/src/pv/pvaClient.h index a98e5bf..22e539f 100644 --- a/src/pv/pvaClient.h +++ b/src/pv/pvaClient.h @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -107,11 +108,10 @@ public: * \deprecated This method will go away in future versions. Use get instead. * @return shared pointer to the single instance */ - static PvaClientPtr create() - { - std::cerr << "create is deprecated. Use get instead\n"; - return get("pva ca"); - } + static PvaClientPtr create() EPICS_DEPRECATED + { + return get("pva ca"); + } /** Get the requester name. * @return The name. */