Better solution for suppressing unused variable warning
This commit is contained in:
@@ -318,7 +318,12 @@ asynStatus sinqAxis::forcedPoll(bool *moving) {
|
|||||||
return poll_status;
|
return poll_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
asynStatus sinqAxis::doPoll(bool * /*moving*/) { return asynSuccess; }
|
asynStatus sinqAxis::doPoll(bool *moving) {
|
||||||
|
// Suppress unused variable warning - this is just a default fallback
|
||||||
|
// function.
|
||||||
|
(void)moving;
|
||||||
|
return asynSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
asynStatus sinqAxis::move(double position, int relative, double minVelocity,
|
asynStatus sinqAxis::move(double position, int relative, double minVelocity,
|
||||||
double maxVelocity, double acceleration) {
|
double maxVelocity, double acceleration) {
|
||||||
@@ -354,9 +359,15 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity,
|
|||||||
return pC_->callParamCallbacks();
|
return pC_->callParamCallbacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
asynStatus sinqAxis::doMove(double /*position*/, int /*relative*/,
|
asynStatus sinqAxis::doMove(double position, int relative, double minVelocity,
|
||||||
double /*minVelocity*/, double /*maxVelocity*/,
|
double maxVelocity, double acceleration) {
|
||||||
double /*acceleration*/) {
|
// Suppress unused variable warning - this is just a default fallback
|
||||||
|
// function.
|
||||||
|
(void)position;
|
||||||
|
(void)relative;
|
||||||
|
(void)minVelocity;
|
||||||
|
(void)maxVelocity;
|
||||||
|
(void)acceleration;
|
||||||
return asynSuccess;
|
return asynSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -398,8 +409,14 @@ asynStatus sinqAxis::home(double minVelocity, double maxVelocity,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
asynStatus sinqAxis::doHome(double /*minVelocity*/, double /*maxVelocity*/,
|
asynStatus sinqAxis::doHome(double minVelocity, double maxVelocity,
|
||||||
double /*acceleration*/, int /*forwards*/) {
|
double acceleration, int forwards) {
|
||||||
|
// Suppress unused variable warning - this is just a default fallback
|
||||||
|
// function.
|
||||||
|
(void)minVelocity;
|
||||||
|
(void)maxVelocity;
|
||||||
|
(void)acceleration;
|
||||||
|
(void)forwards;
|
||||||
return asynSuccess;
|
return asynSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,7 +438,12 @@ asynStatus sinqAxis::reset() {
|
|||||||
|
|
||||||
asynStatus sinqAxis::doReset() { return asynError; }
|
asynStatus sinqAxis::doReset() { return asynError; }
|
||||||
|
|
||||||
asynStatus sinqAxis::enable(bool /*on*/) { return asynSuccess; }
|
asynStatus sinqAxis::enable(bool on) {
|
||||||
|
// Suppress unused variable warning - this is just a default fallback
|
||||||
|
// function.
|
||||||
|
(void)on;
|
||||||
|
return asynSuccess;
|
||||||
|
}
|
||||||
|
|
||||||
asynStatus sinqAxis::motorPosition(double *motorPos) {
|
asynStatus sinqAxis::motorPosition(double *motorPos) {
|
||||||
asynStatus status = asynSuccess;
|
asynStatus status = asynSuccess;
|
||||||
|
|||||||
Reference in New Issue
Block a user