Skip to content

Commit

Permalink
Fix unused parameter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
BsAtHome committed Jan 16, 2025
1 parent ba7542e commit f93d92d
Show file tree
Hide file tree
Showing 97 changed files with 628 additions and 412 deletions.
14 changes: 7 additions & 7 deletions src/emc/canterp/canterp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ char *Canterp::stack_name(int index, char *buf, size_t buflen) {
return buf;
}

int Canterp::ini_load(const char *inifile) {
int Canterp::ini_load(const char * /*inifile*/) {
return 0;
}

Expand Down Expand Up @@ -687,7 +687,7 @@ int Canterp::execute(const char *line) {
return INTERP_ERROR;
}

int Canterp::execute(const char *line, int line_number) {
int Canterp::execute(const char *line, int /*line_number*/) {
return execute(line);
}

Expand Down Expand Up @@ -745,15 +745,15 @@ void Canterp::active_g_codes(int gees[ACTIVE_G_CODES]) { std::fill(gees, gees +
void Canterp::active_m_codes(int emms[ACTIVE_M_CODES]) { std::fill(emms, emms + ACTIVE_M_CODES, 0); }
void Canterp::active_settings(double sets[ACTIVE_SETTINGS]) { std::fill(sets, sets + ACTIVE_SETTINGS, 0.0); }
//NOT necessary for canterp
int Canterp::restore_from_tag(StateTag const &tag) {return -1;}
void Canterp::print_state_tag(StateTag const &tag) {}
int Canterp::restore_from_tag(StateTag const & /*tag*/) {return -1;}
void Canterp::print_state_tag(StateTag const & /*tag*/) {}

int Canterp::active_modes(int g_codes[ACTIVE_G_CODES],
int m_codes[ACTIVE_M_CODES],
double settings[ACTIVE_SETTINGS],
StateTag const &tag){ return -1;}
StateTag const & /*tag*/){ (void)g_codes; (void)m_codes; (void)settings; return -1;}

void Canterp::set_loglevel(int level) {}
void Canterp::set_loop_on_main_m99(bool state) {}
void Canterp::set_loglevel(int /*level*/) {}
void Canterp::set_loop_on_main_m99(bool /*state*/) {}

InterpBase *makeInterp() { return new Canterp; }
7 changes: 7 additions & 0 deletions src/emc/kinematics/genserfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ int genser_kin_jac_inv(void *kins,
const go_pose * pos,
const go_screw * vel, const go_real * joints, go_real * jointvels)
{
(void)pos;
genser_struct *genser = (genser_struct *) kins;
GO_MATRIX_DECLARE(Jfwd, Jfwd_stg, 6, GENSER_MAX_JOINTS);
GO_MATRIX_DECLARE(Jinv, Jinv_stg, GENSER_MAX_JOINTS, 6);
Expand Down Expand Up @@ -274,6 +275,7 @@ int genser_kin_jac_fwd(void *kins,
const go_real * joints,
const go_real * jointvels, const go_pose * pos, go_screw * vel)
{
(void)pos;
genser_struct *genser = (genser_struct *) kins;
GO_MATRIX_DECLARE(Jfwd, Jfwd_stg, 6, GENSER_MAX_JOINTS);
go_pose T_L_0;
Expand Down Expand Up @@ -312,6 +314,8 @@ int genserKinematicsForward(const double *joint,
EmcPose * world,
const KINEMATICS_FORWARD_FLAGS * fflags,
KINEMATICS_INVERSE_FLAGS * iflags) {
(void)fflags;
(void)iflags;

go_pose *pos;
go_rpy rpy;
Expand Down Expand Up @@ -408,6 +412,8 @@ int genserKinematicsInverse(const EmcPose * world,
const KINEMATICS_INVERSE_FLAGS * iflags,
KINEMATICS_FORWARD_FLAGS * fflags)
{
(void)iflags;
(void)fflags;

genser_struct *genser = KINS_PTR;
GO_MATRIX_DECLARE(Jfwd, Jfwd_stg, 6, GENSER_MAX_JOINTS);
Expand Down Expand Up @@ -590,6 +596,7 @@ int genserKinematicsSetup(const int comp_id,
const char* coordinates,
kparms* kp)
{
(void)coordinates;
int i,res=0;
haldata = hal_malloc(sizeof(struct haldata));
if (!haldata) {goto error;}
Expand Down
2 changes: 2 additions & 0 deletions src/emc/motion/axis.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ double axis_get_ext_offset_curr_pos(int axis_num)

void axis_jog_cont(int axis_num, double vel, long servo_period)
{
(void)servo_period;
emcmot_axis_t *axis = &axis_array[axis_num];

if (vel > 0.0) {
Expand All @@ -277,6 +278,7 @@ void axis_jog_cont(int axis_num, double vel, long servo_period)

void axis_jog_incr(int axis_num, double offset, double vel, long servo_period)
{
(void)servo_period;
emcmot_axis_t *axis = &axis_array[axis_num];
double tmp1;

Expand Down
2 changes: 1 addition & 1 deletion src/emc/motion/usrmotintf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ int usrmotLoadComp(int joint, const char *file, int type)
}


int usrmotPrintComp(int joint)
int usrmotPrintComp(int /*joint*/)
{
/* FIXME-AJ: comp isn't in shmem atm
it's in the joint struct, which is only in shmem when STRUCTS_IN_SHM is defined,
Expand Down
28 changes: 14 additions & 14 deletions src/emc/nml_intf/emc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ void EMC_IO_STAT::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_SPINDLE_STAT_MSG::update(CMS * cms)
void EMC_SPINDLE_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand All @@ -590,7 +590,7 @@ void EMC_SPINDLE_STAT_MSG::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_CMD_MSG::update(CMS * cms)
void EMC_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -735,7 +735,7 @@ void EMC_TASK_PLAN_SYNCH::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_COOLANT_CMD_MSG::update(CMS * cms)
void EMC_COOLANT_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -917,7 +917,7 @@ void EMC_MOTION_SET_AOUT::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_COOLANT_STAT_MSG::update(CMS * cms)
void EMC_COOLANT_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1090,7 +1090,7 @@ void EMC_TASK_PLAN_RUN::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_TOOL_CMD_MSG::update(CMS * cms)
void EMC_TOOL_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand All @@ -1110,7 +1110,7 @@ void EMC_TASK_PLAN_RESUME::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_TASK_CMD_MSG::update(CMS * cms)
void EMC_TASK_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand All @@ -1120,7 +1120,7 @@ void EMC_TASK_CMD_MSG::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_TRAJ_STAT_MSG::update(CMS * cms)
void EMC_TRAJ_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1187,7 +1187,7 @@ void CANON_TOOL_TABLE_update(CMS * cms, CANON_TOOL_TABLE * x)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_TOOL_STAT_MSG::update(CMS * cms)
void EMC_TOOL_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1419,7 +1419,7 @@ void EMC_JOINT_LOAD_COMP::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:16 UTC 2003
*/
void EMC_STAT_MSG::update(CMS * cms)
void EMC_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1526,7 +1526,7 @@ void EMC_TRAJ_SET_OFFSET::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:17 UTC 2003
*/
void EMC_TRAJ_CMD_MSG::update(CMS * cms)
void EMC_TRAJ_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1683,7 +1683,7 @@ void EMC_SPINDLE_INCREASE::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:17 UTC 2003
*/
void EMC_AUX_CMD_MSG::update(CMS * cms)
void EMC_AUX_CMD_MSG::update(CMS * /*cms*/)
{

}
Expand All @@ -1704,7 +1704,7 @@ void EMC_JOINT_SET_MIN_FERROR::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:17 UTC 2003
*/
void EMC_NULL::update(CMS * cms)
void EMC_NULL::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -1782,7 +1782,7 @@ void EMC_TRAJ_PAUSE::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:17 UTC 2003
*/
void EMC_AUX_STAT_MSG::update(CMS * cms)
void EMC_AUX_STAT_MSG::update(CMS * /*cms*/)
{

}
Expand Down Expand Up @@ -2029,7 +2029,7 @@ void EMC_MOTION_ADAPTIVE::update(CMS * cms)
* Automatically generated by NML CodeGen Java Applet.
* on Sat Oct 11 13:45:17 UTC 2003
*/
void EMC_MOTION_CMD_MSG::update(CMS * cms)
void EMC_MOTION_CMD_MSG::update(CMS * /*cms*/)
{

}
Loading

0 comments on commit f93d92d

Please sign in to comment.