forked from epics_driver_modules/motorBase
send_mess() uses 'const char *' (and more const char*)
The 2nd and 3rd parameter in send_mess() can and should
be a 'const char *' instead of just 'char *'.
Modern compilers complain here, so that the signature now
gets the const.
Update drivers from the following list to use the new send_mess():
modules/motorAcs
modules/motorAcsTech80
modules/motorAerotech
modules/motorFaulhaber
modules/motorIms
modules/motorKohzu
modules/motorMclennan
modules/motorMicos
modules/motorMicroMo
modules/motorNewFocus
modules/motorNewport
modules/motorOms
modules/motorOriel
modules/motorPI
modules/motorParker
modules/motorPiJena
modules/motorSmartMotor
modules/motorThorLabs
And while there, fix one more "const char *" in motordrvCom.cc
This commit is contained in:
@@ -219,6 +219,19 @@ Modification Log for R6-10
|
||||
|
||||
File modified: OmsSrc/drvMAXv.cc
|
||||
|
||||
8) Changed axis names from 'char *' to 'const char*' to avoid compiler warnings.
|
||||
(Assigning literal string to char* is deprecated).
|
||||
This affects driver_table.axis_names and driver_table.sendmsg used in
|
||||
every motor driver.
|
||||
*** THIS CHANGE BREAKS BACKWARD COMPATIBILITY! ***
|
||||
All external motor drivers need to change their send_mess() function
|
||||
to use 'const char*' as the last argument:
|
||||
RTN_STATUS send_mess(int, const char *, const char *);
|
||||
|
||||
Files modified: motorApp/MotorSrc/motordrvCom.h
|
||||
motorApp/MotorSrc/motordrvCom.cc
|
||||
motorApp/*Src/drv*.cc
|
||||
|
||||
|
||||
Modification Log for R6-9
|
||||
=========================
|
||||
|
||||
Reference in New Issue
Block a user