epics-modules / motor

APS BCDA synApps module: motor
https://epics-modules.github.io/motor/
20 stars 47 forks source link

Deprecated constructor "asynPortDriver" since asyn R4.32.0 #119

Closed tboegi closed 5 years ago

tboegi commented 5 years ago

The asyn module make the constructor asynPortDriver::asynPortDriver(const char *portNameIn, int maxAddrIn, int paramTableSize, int interfaceMask, int interruptMask, int asynFlags, int autoConnect, int priority, int stackSize)

obsolete in R4.32.0, the more modern version should be used, which does not have the parameter paramTableSize. Using a modern version of asyn for the motor gives a compiler warning. As I don't like compiler warnings, add a #ifdef construct to suppress it for asyn > R4.32, and still allow to compile agains asyn >= R4.32