From dcf7b37c8932d58fdab80c6f91a7b03379bcf871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Date: Tue, 2 Oct 2018 15:37:28 +0200 Subject: [PATCH] Avoid warnings with R3.16.1 in devSoft.cc and devMotorSim.c Need to set USE_TYPED_RSET to avoid a warning whencompiling against Base R3.16.1 Older Bases don't know the #define, and R3.16.1 seems to need it. --- motorApp/MotorSimSrc/devMotorSim.c | 3 +++ motorApp/SoftMotorSrc/devSoft.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/motorApp/MotorSimSrc/devMotorSim.c b/motorApp/MotorSimSrc/devMotorSim.c index 15552418..f8889e3c 100644 --- a/motorApp/MotorSimSrc/devMotorSim.c +++ b/motorApp/MotorSimSrc/devMotorSim.c @@ -6,6 +6,9 @@ #include #include +/* The following is needed to compile against Base R3.16.1 without a warning */ +#define USE_TYPED_RSET + #include "epicsFindSymbol.h" #include "dbAccess.h" #include "recGbl.h" diff --git a/motorApp/SoftMotorSrc/devSoft.cc b/motorApp/SoftMotorSrc/devSoft.cc index 5ef2ddd0..55d29138 100644 --- a/motorApp/SoftMotorSrc/devSoft.cc +++ b/motorApp/SoftMotorSrc/devSoft.cc @@ -46,6 +46,8 @@ NOTES... - Can't call CA functions until after dbLockInitRecords() has been called and initialized lock sets. */ +/* The following is needed to compile against Base R3.16.1 without a warning */ +#define USE_TYPED_RSET #include #include