diff --git a/src/emc/canterp/canterp.cc b/src/emc/canterp/canterp.cc index c060ce8a66e..732a02dbfd7 100644 --- a/src/emc/canterp/canterp.cc +++ b/src/emc/canterp/canterp.cc @@ -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; } @@ -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); } @@ -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; } diff --git a/src/emc/kinematics/genserfuncs.c b/src/emc/kinematics/genserfuncs.c index 3b1bc5a7f2e..14b275d6dc8 100644 --- a/src/emc/kinematics/genserfuncs.c +++ b/src/emc/kinematics/genserfuncs.c @@ -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); @@ -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; @@ -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; @@ -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); @@ -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;} diff --git a/src/emc/motion/axis.c b/src/emc/motion/axis.c index 4b8f37d3298..4e53ebf9bee 100644 --- a/src/emc/motion/axis.c +++ b/src/emc/motion/axis.c @@ -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) { @@ -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; diff --git a/src/emc/motion/usrmotintf.cc b/src/emc/motion/usrmotintf.cc index bdf1e78a22a..2af648e758e 100644 --- a/src/emc/motion/usrmotintf.cc +++ b/src/emc/motion/usrmotintf.cc @@ -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, diff --git a/src/emc/nml_intf/emc.cc b/src/emc/nml_intf/emc.cc index f41f3828840..348a91d32a9 100644 --- a/src/emc/nml_intf/emc.cc +++ b/src/emc/nml_intf/emc.cc @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } @@ -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*/) { } diff --git a/src/emc/rs274ngc/gcodemodule.cc b/src/emc/rs274ngc/gcodemodule.cc index 302bf5f48ce..d453f11c4a7 100644 --- a/src/emc/rs274ngc/gcodemodule.cc +++ b/src/emc/rs274ngc/gcodemodule.cc @@ -257,7 +257,7 @@ void NURBS_G5_FEED(int line_number, std::vector nurbs_contr /* G_6_2 L_option is unused */ //----------------------------------------------------------------------------------------------------------------------------------------- -void NURBS_G6_FEED(int line_number, std::vector nurbs_control_points, unsigned int k, double feedrate, int L_option, CANON_PLANE plane) { // (L_option: NICU, NICL, NICC see publication from Lo Valvo and Drago) +void NURBS_G6_FEED(int line_number, std::vector nurbs_control_points, unsigned int k, double /*feedrate*/, int /*L_option*/, CANON_PLANE plane) { // (L_option: NICU, NICL, NICC see publication from Lo Valvo and Drago) double u = 0.0; unsigned int n = nurbs_control_points.size() - 1-k; double umax = nurbs_control_points[n+k].NURBS_K; @@ -431,7 +431,7 @@ void SET_TRAVERSE_RATE(double rate) { Py_XDECREF(result); } -void SET_FEED_MODE(int spindle, int mode) { +void SET_FEED_MODE(int /*spindle*/, int /*mode*/) { #if 0 maybe_new_line(); if(interp_error) return; @@ -451,7 +451,7 @@ void CHANGE_TOOL() { Py_XDECREF(result); } -void CHANGE_TOOL_NUMBER(int pocket) { +void CHANGE_TOOL_NUMBER(int /*pocket*/) { maybe_new_line(); if(interp_error) return; } @@ -493,9 +493,9 @@ void MESSAGE(char *comment) { Py_XDECREF(result); } -void LOG(char *s) {} -void LOGOPEN(char *f) {} -void LOGAPPEND(char *f) {} +void LOG(char * /*s*/) {} +void LOGOPEN(char * /*f*/) {} +void LOGAPPEND(char * /*f*/) {} void LOGCLOSE() {} void COMMENT(const char *comment) { @@ -507,8 +507,8 @@ void COMMENT(const char *comment) { Py_XDECREF(result); } -void SET_TOOL_TABLE_ENTRY(int pocket, int toolno, EmcPose offset, double diameter, - double frontangle, double backangle, int orientation) { +void SET_TOOL_TABLE_ENTRY(int /*pocket*/, int /*toolno*/, EmcPose /*offset*/, double /*diameter*/, + double /*frontangle*/, double /*backangle*/, int /*orientation*/) { } void USE_TOOL_LENGTH_OFFSET(EmcPose offset) { @@ -524,27 +524,27 @@ void USE_TOOL_LENGTH_OFFSET(EmcPose offset) { Py_XDECREF(result); } -void SET_FEED_REFERENCE(double reference) { } -void SET_CUTTER_RADIUS_COMPENSATION(double radius) {} -void START_CUTTER_RADIUS_COMPENSATION(int direction) {} -void STOP_CUTTER_RADIUS_COMPENSATION(int direction) {} +void SET_FEED_REFERENCE(double /*reference*/) { } +void SET_CUTTER_RADIUS_COMPENSATION(double /*radius*/) {} +void START_CUTTER_RADIUS_COMPENSATION(int /*direction*/) {} +void STOP_CUTTER_RADIUS_COMPENSATION(int /*direction*/) {} void START_SPEED_FEED_SYNCH() {} -void START_SPEED_FEED_SYNCH(int spindle, double sync, bool vel) {} +void START_SPEED_FEED_SYNCH(int /*spindle*/, double /*sync*/, bool /*vel*/) {} void STOP_SPEED_FEED_SYNCH() {} -void START_SPINDLE_COUNTERCLOCKWISE(int spindle, int wait_for_at_speed) {} -void START_SPINDLE_CLOCKWISE(int spindle, int wait_for_at_speed) {} -void SET_SPINDLE_MODE(int spindle, double) {} -void STOP_SPINDLE_TURNING(int spindle) {} -void SET_SPINDLE_SPEED(int spindle, double rpm) {} -void ORIENT_SPINDLE(int spindle, double d, int i) {} -void WAIT_SPINDLE_ORIENT_COMPLETE(int s, double timeout) {} +void START_SPINDLE_COUNTERCLOCKWISE(int /*spindle*/, int /*wait_for_at_speed*/) {} +void START_SPINDLE_CLOCKWISE(int /*spindle*/, int /*wait_for_at_speed*/) {} +void SET_SPINDLE_MODE(int /*spindle*/, double) {} +void STOP_SPINDLE_TURNING(int /*spindle*/) {} +void SET_SPINDLE_SPEED(int /*spindle*/, double /*rpm*/) {} +void ORIENT_SPINDLE(int /*spindle*/, double /*d*/, int /*i*/) {} +void WAIT_SPINDLE_ORIENT_COMPLETE(int /*s*/, double /*timeout*/) {} void PROGRAM_STOP() {} void PROGRAM_END() {} void FINISH() {} void ON_RESET() {} void PALLET_SHUTTLE() {} void SELECT_TOOL(int tool) {selected_tool = tool;} -void UPDATE_TAG(StateTag tag) {} +void UPDATE_TAG(StateTag /*tag*/) {} void OPTIONAL_PROGRAM_STOP() {} int GET_EXTERNAL_TC_FAULT() {return 0;} int GET_EXTERNAL_TC_REASON() {return 0;} @@ -564,42 +564,42 @@ extern bool GET_BLOCK_DELETE(void) { return bd; } -void CANON_ERROR(const char *fmt, ...) {}; -void CLAMP_AXIS(CANON_AXIS axis) {} +void CANON_ERROR(const char * /*fmt*/, ...) {}; +void CLAMP_AXIS(CANON_AXIS /*axis*/) {} bool GET_OPTIONAL_PROGRAM_STOP() { return false;} -void SET_OPTIONAL_PROGRAM_STOP(bool state) {} +void SET_OPTIONAL_PROGRAM_STOP(bool /*state*/) {} void SPINDLE_RETRACT_TRAVERSE() {} void SPINDLE_RETRACT() {} void STOP_CUTTER_RADIUS_COMPENSATION() {} void USE_NO_SPINDLE_FORCE() {} -void SET_BLOCK_DELETE(bool enabled) {} +void SET_BLOCK_DELETE(bool /*enabled*/) {} void DISABLE_FEED_OVERRIDE() {} void DISABLE_FEED_HOLD() {} void ENABLE_FEED_HOLD() {} -void DISABLE_SPEED_OVERRIDE(int spindle) {} +void DISABLE_SPEED_OVERRIDE(int /*spindle*/) {} void ENABLE_FEED_OVERRIDE() {} -void ENABLE_SPEED_OVERRIDE(int spindle) {} +void ENABLE_SPEED_OVERRIDE(int /*spindle*/) {} void MIST_OFF() {} void FLOOD_OFF() {} void MIST_ON() {} void FLOOD_ON() {} -void CLEAR_AUX_OUTPUT_BIT(int bit) {} -void SET_AUX_OUTPUT_BIT(int bit) {} -void SET_AUX_OUTPUT_VALUE(int index, double value) {} -void CLEAR_MOTION_OUTPUT_BIT(int bit) {} -void SET_MOTION_OUTPUT_BIT(int bit) {} -void SET_MOTION_OUTPUT_VALUE(int index, double value) {} +void CLEAR_AUX_OUTPUT_BIT(int /*bit*/) {} +void SET_AUX_OUTPUT_BIT(int /*bit*/) {} +void SET_AUX_OUTPUT_VALUE(int /*index*/, double /*value*/) {} +void CLEAR_MOTION_OUTPUT_BIT(int /*bit*/) {} +void SET_MOTION_OUTPUT_BIT(int /*bit*/) {} +void SET_MOTION_OUTPUT_VALUE(int /*index*/, double /*value*/) {} void TURN_PROBE_ON() {} void TURN_PROBE_OFF() {} -int UNLOCK_ROTARY(int line_no, int joint_num) {return 0;} -int LOCK_ROTARY(int line_no, int joint_num) {return 0;} -void INTERP_ABORT(int reason,const char *message) {} +int UNLOCK_ROTARY(int /*line_no*/, int /*joint_num*/) {return 0;} +int LOCK_ROTARY(int /*line_no*/, int /*joint_num*/) {return 0;} +void INTERP_ABORT(int /*reason*/, const char * /*message*/) {} void STRAIGHT_PROBE(int line_number, double x, double y, double z, double a, double b, double c, - double u, double v, double w, unsigned char probe_type) { + double u, double v, double w, unsigned char /*probe_type*/) { _pos_x=x; _pos_y=y; _pos_z=z; _pos_a=a; _pos_b=b; _pos_c=c; _pos_u=u; _pos_v=v; _pos_w=w; @@ -614,7 +614,7 @@ void STRAIGHT_PROBE(int line_number, } void RIGID_TAP(int line_number, - double x, double y, double z, double scale) { + double x, double y, double z, double /*scale*/) { if(metric) { x /= 25.4; y /= 25.4; z /= 25.4; } maybe_new_line(line_number); if(interp_error) return; @@ -681,9 +681,9 @@ CANON_TOOL_TABLE GET_EXTERNAL_TOOL_TABLE(int pocket) { return tdata; } -int GET_EXTERNAL_DIGITAL_INPUT(int index, int def) { return def; } -double GET_EXTERNAL_ANALOG_INPUT(int index, double def) { return def; } -int WAIT(int index, int input_type, int wait_type, double timeout) { return 0;} +int GET_EXTERNAL_DIGITAL_INPUT(int /*index*/, int def) { return def; } +double GET_EXTERNAL_ANALOG_INPUT(int /*index*/, double def) { return def; } +int WAIT(int /*index*/, int /*input_type*/, int /*wait_type*/, double /*timeout*/) { return 0;} static void user_defined_function(int num, double arg1, double arg2) { if(interp_error) return; @@ -695,7 +695,7 @@ static void user_defined_function(int num, double arg1, double arg2) { Py_XDECREF(result); } -void SET_FEED_REFERENCE(CANON_FEED_REFERENCE ref) {} +void SET_FEED_REFERENCE(CANON_FEED_REFERENCE /*ref*/) {} int GET_EXTERNAL_QUEUE_EMPTY() { return true; } CANON_DIRECTION GET_EXTERNAL_SPINDLE(int) { return CANON_STOPPED; } int GET_EXTERNAL_TOOL_SLOT() { return 0; } @@ -705,12 +705,12 @@ double GET_EXTERNAL_TRAVERSE_RATE() { return 0; } int GET_EXTERNAL_FLOOD() { return 0; } int GET_EXTERNAL_MIST() { return 0; } CANON_PLANE GET_EXTERNAL_PLANE() { return CANON_PLANE::XY; } -double GET_EXTERNAL_SPEED(int spindle) { return 0; } +double GET_EXTERNAL_SPEED(int /*spindle*/) { return 0; } void DISABLE_ADAPTIVE_FEED() {} void ENABLE_ADAPTIVE_FEED() {} int GET_EXTERNAL_FEED_OVERRIDE_ENABLE() {return 1;} -int GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE(int spindle) {return 1;} +int GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE(int /*spindle*/) {return 1;} int GET_EXTERNAL_ADAPTIVE_FEED_ENABLE() {return 0;} int GET_EXTERNAL_FEED_HOLD_ENABLE() {return 1;} @@ -828,14 +828,14 @@ static bool check_abort() { USER_DEFINED_FUNCTION_TYPE USER_DEFINED_FUNCTION[USER_DEFINED_FUNCTION_NUM]; CANON_MOTION_MODE motion_mode; -void SET_MOTION_CONTROL_MODE(CANON_MOTION_MODE mode, double tolerance) { motion_mode = mode; } -void SET_MOTION_CONTROL_MODE(double tolerance) { } +void SET_MOTION_CONTROL_MODE(CANON_MOTION_MODE mode, double /*tolerance*/) { motion_mode = mode; } +void SET_MOTION_CONTROL_MODE(double /*tolerance*/) { } void SET_MOTION_CONTROL_MODE(CANON_MOTION_MODE mode) { motion_mode = mode; } CANON_MOTION_MODE GET_EXTERNAL_MOTION_CONTROL_MODE() { return motion_mode; } -void SET_NAIVECAM_TOLERANCE(double tolerance) { } +void SET_NAIVECAM_TOLERANCE(double /*tolerance*/) { } #define RESULT_OK (result == INTERP_OK || result == INTERP_EXECUTE_FINISH) -static PyObject *parse_file(PyObject *self, PyObject *args) { +static PyObject *parse_file(PyObject * /*self*/, PyObject *args) { char *f; char *unitcode=0, *initcode=0, *interpname=0; PyObject *initcodes=0; @@ -948,14 +948,14 @@ static PyObject *parse_file(PyObject *self, PyObject *args) { static int maxerror = -1; static char savedError[LINELEN+1]; -static PyObject *rs274_strerror(PyObject *s, PyObject *o) { +static PyObject *rs274_strerror(PyObject * /*s*/, PyObject *o) { int err; if(!PyArg_ParseTuple(o, "i", &err)) return nullptr; pinterp->error_text(err, savedError, LINELEN); return PyUnicode_FromString(savedError); } -static PyObject *rs274_calc_extents(PyObject *self, PyObject *args) { +static PyObject *rs274_calc_extents(PyObject * /*self*/, PyObject *args) { double min_x = 9e99, min_y = 9e99, min_z = 9e99, min_xt = 9e99, min_yt = 9e99, min_zt = 9e99, max_x = -9e99, max_y = -9e99, max_z = -9e99, @@ -1063,7 +1063,7 @@ static void rotate(double &x, double &y, double c, double s) { x = tx; } -static PyObject *rs274_arc_to_segments(PyObject *self, PyObject *args) { +static PyObject *rs274_arc_to_segments(PyObject * /*self*/, PyObject *args) { PyObject *canon; double x1, y1, cx, cy, z1, a, b, c, u, v, w; double o[9], n[9], g5xoffset[9], g92offset[9]; diff --git a/src/emc/rs274ngc/interp_arc.cc b/src/emc/rs274ngc/interp_arc.cc index a7a8c41766d..e2d8ac21a1c 100644 --- a/src/emc/rs274ngc/interp_arc.cc +++ b/src/emc/rs274ngc/interp_arc.cc @@ -347,7 +347,7 @@ of the arc lies on a line through M perpendicular to L. */ int Interp::arc_data_r(int move, //!< either G_2 (cw arc) or G_3 (ccw arc) - CANON_PLANE plane, + CANON_PLANE /*plane*/, double current_x, //!< first coordinate of current point double current_y, //!< second coordinate of current point double end_x, //!< first coordinate of arc end point diff --git a/src/emc/rs274ngc/interp_convert.cc b/src/emc/rs274ngc/interp_convert.cc index 867def49809..c8514dfebdc 100644 --- a/src/emc/rs274ngc/interp_convert.cc +++ b/src/emc/rs274ngc/interp_convert.cc @@ -1818,7 +1818,7 @@ int Interp::convert_axis_offsets(int g_code, //!< g_code being executed (mus #define VAL_LEN 30 -int Interp::convert_param_comment(char *comment, char *expanded, int len) +int Interp::convert_param_comment(char *comment, char *expanded, int /*len*/) { FORCE_LC_NUMERIC_C; int i; @@ -2756,7 +2756,7 @@ Called by: convert_g. */ -int Interp::convert_dwell(setup_pointer settings, double time) //!< time in seconds to dwell */ +int Interp::convert_dwell(setup_pointer /*settings*/, double time) //!< time in seconds to dwell */ { enqueue_DWELL(time); return INTERP_OK; @@ -2977,7 +2977,7 @@ Saves the absolute coordinates of the current point in parameters 5161-5169 */ -int Interp::convert_savehome(int code, block_pointer block, setup_pointer s) { +int Interp::convert_savehome(int code, block_pointer /*block*/, setup_pointer s) { double *p = s->parameters; if(s->cutter_comp_side != CUTTER_COMP::OFF) { @@ -3357,7 +3357,7 @@ int Interp::convert_length_units(int g_code, //!< g_code being executed (mus */ int Interp::gen_settings( int *int_current, int *int_saved, // G-codes - double *float_current, double *float_saved, // S, F, other + double * /*float_current*/, double *float_saved, // S, F, other std::string &cmd) // command buffer { FORCE_LC_NUMERIC_C; @@ -3534,7 +3534,7 @@ int Interp::gen_m_codes(int *current, int *saved, std::string &cmd) * motion line, but does not restore M codes. */ int Interp::gen_restore_cmd(int *current_g, - int *current_m, + int * /*current_m*/, double *current_settings, StateTag const &saved, std::string &cmd) diff --git a/src/emc/rs274ngc/interp_cycles.cc b/src/emc/rs274ngc/interp_cycles.cc index 064ed1301b1..44b7c49bb65 100644 --- a/src/emc/rs274ngc/interp_cycles.cc +++ b/src/emc/rs274ngc/interp_cycles.cc @@ -285,7 +285,7 @@ int Interp::convert_cycle_g74_g84(block_pointer block, double clear_z, //!< z-value of clearance plane double bottom_z, //!< value of z at bottom of cycle CANON_DIRECTION direction, //!< direction spindle turning at outset - CANON_SPEED_FEED_MODE mode, //!< the speed-feed mode at outset + CANON_SPEED_FEED_MODE /*mode*/, //!< the speed-feed mode at outset int motion, double dwell, int spindle) { diff --git a/src/emc/rs274ngc/interp_find.cc b/src/emc/rs274ngc/interp_find.cc index f460c3ccf44..66145182cdb 100644 --- a/src/emc/rs274ngc/interp_find.cc +++ b/src/emc/rs274ngc/interp_find.cc @@ -713,7 +713,7 @@ double Interp::find_turn(double x1, //!< X-coordinate of start point return (theta); } -int Interp::find_tool_index(setup_pointer settings, int toolno, int *index) +int Interp::find_tool_index(setup_pointer /*settings*/, int toolno, int *index) { #ifdef TOOL_NML //{ @@ -731,7 +731,7 @@ int Interp::find_tool_index(setup_pointer settings, int toolno, int *index) return INTERP_OK; } -int Interp::find_tool_pocket(setup_pointer settings, int toolno, int *pocket) +int Interp::find_tool_pocket(setup_pointer /*settings*/, int toolno, int *pocket) { #ifdef TOOL_NML //{ if(!settings->random_toolchanger && toolno == 0) { diff --git a/src/emc/rs274ngc/interp_g7x.cc b/src/emc/rs274ngc/interp_g7x.cc index f97c407c340..108594f10ea 100644 --- a/src/emc/rs274ngc/interp_g7x.cc +++ b/src/emc/rs274ngc/interp_g7x.cc @@ -30,10 +30,10 @@ class motion_base { class motion_null:public motion_base { public: - void straight_move(std::complex end) override {} - void straight_rapid(std::complex end) override {} - void circular_move(bool ccw,std::complex center, - std::complex end) override {} + void straight_move(std::complex /*end*/) override {} + void straight_rapid(std::complex /*end*/) override {} + void circular_move(bool /*ccw*/,std::complex /*center*/, + std::complex /*end*/) override {} }; //////////////////////////////////////////////////////////////////////////////// @@ -63,7 +63,7 @@ class segment { virtual std::unique_ptr dup()=0; virtual double radius()=0; virtual bool monotonic() { return real(end-start)<=1e-3; } - virtual void do_finish(segment *prev, segment *next) {} + virtual void do_finish(segment * /*prev*/, segment * /*next*/) {} std::complex &sp() { return start; } std::complex &ep() { return end; } @@ -1001,7 +1001,7 @@ class switch_settings { DISTANCE_MODE distance_mode() { return saved_distance_mode; } }; -int Interp::convert_g7x(int mode, +int Interp::convert_g7x(int /*mode*/, block_pointer block, //!< pointer to a block of RS274 instructions setup_pointer settings) //!< pointer to machine settings { diff --git a/src/emc/rs274ngc/interp_namedparams.cc b/src/emc/rs274ngc/interp_namedparams.cc index daf55c62b00..cb0127698b4 100644 --- a/src/emc/rs274ngc/interp_namedparams.cc +++ b/src/emc/rs274ngc/interp_namedparams.cc @@ -153,7 +153,7 @@ int Interp::read_named_parameter( char *line, //!< string: line of RS274/NGC code being processed int *counter, //!< pointer to a counter for position on the line double *double_ptr, //!< pointer to double to be read - double *parameters, //!< array of system parameters + double * /*parameters*/, //!< array of system parameters bool check_exists) //!< test for existence, not value { static char name[] = "read_named_parameter"; diff --git a/src/emc/rs274ngc/interp_python.cc b/src/emc/rs274ngc/interp_python.cc index 512911295e3..d832ac992dd 100644 --- a/src/emc/rs274ngc/interp_python.cc +++ b/src/emc/rs274ngc/interp_python.cc @@ -90,7 +90,7 @@ int Interp::py_reload() } // determine whether [module.]funcname is callable -bool Interp::is_pycallable(setup_pointer settings, +bool Interp::is_pycallable(setup_pointer /*settings*/, const char *module, const char *funcname) { @@ -102,7 +102,7 @@ bool Interp::is_pycallable(setup_pointer settings, // all parameters to/results from Python calls go through the callframe, which looks a bit awkward // the reason is not to expose boost.python through the interpreter public interface -int Interp::pycall(setup_pointer settings, +int Interp::pycall(setup_pointer /*settings*/, context_pointer frame, const char *module, const char *funcname, diff --git a/src/emc/rs274ngc/interp_queue.cc b/src/emc/rs274ngc/interp_queue.cc index b4ef0484657..cb5f58b0c17 100644 --- a/src/emc/rs274ngc/interp_queue.cc +++ b/src/emc/rs274ngc/interp_queue.cc @@ -340,7 +340,7 @@ int enqueue_STRAIGHT_TRAVERSE(setup_pointer settings, int l, return 0; } -void enqueue_ARC_FEED(setup_pointer settings, int l, +void enqueue_ARC_FEED(setup_pointer /*settings*/, int l, double original_turns, double end1, double end2, double center1, double center2, int turn, diff --git a/src/emc/rs274ngc/interp_read.cc b/src/emc/rs274ngc/interp_read.cc index 0046342bf1e..476990335d4 100644 --- a/src/emc/rs274ngc/interp_read.cc +++ b/src/emc/rs274ngc/interp_read.cc @@ -288,7 +288,7 @@ present only so that this will have the same argument list as the other int Interp::read_comment(char *line, //!< string: line of RS274 code being processed int *counter, //!< pointer to a counter for position on the line block_pointer block, //!< pointer to a block being filled from the line - double *parameters) //!< array of system parameters + double * /*parameters*/) //!< array of system parameters { int n; @@ -307,8 +307,8 @@ int Interp::read_comment(char *line, //!< string: line of RS274 code being p int Interp::read_semicolon(char *line, //!< string: line of RS274 code being processed int *counter, //!< pointer to a counter for position on the line - block_pointer block, //!< pointer to a block being filled from the line - double *parameters) //!< array of system parameters + block_pointer /*block*/, //!< pointer to a block being filled from the line + double * /*parameters*/) //!< array of system parameters { CHKS((line[*counter] != ';'), NCE_BUG_FUNCTION_SHOULD_NOT_HAVE_BEEN_CALLED); (*counter) = strlen(line); @@ -2147,7 +2147,7 @@ to be evaluated. That situation is handled by read_parameter. int Interp::read_parameter_setting( char *line, //!< string: line of RS274/NGC code being processed int *counter, //!< pointer to a counter for position on the line - block_pointer block, //!< pointer to a block being filled from the line + block_pointer /*block*/, //!< pointer to a block being filled from the line double *parameters) //!< array of system parameters { static char name[] = "read_parameter_setting"; @@ -2273,7 +2273,7 @@ int Interp::read_named_parameter_setting( char *line, //!< string: line of RS274/NGC code being processed int *counter, //!< pointer to a counter for position on the line char **param, //!< pointer to the char * to be returned - double *parameters) //!< array of system parameters + double * /*parameters*/) //!< array of system parameters { static char name[] = "read_named_parameter_setting"; int status; diff --git a/src/emc/rs274ngc/interp_remap.cc b/src/emc/rs274ngc/interp_remap.cc index 15d2b7e0ca0..ea597def3f6 100644 --- a/src/emc/rs274ngc/interp_remap.cc +++ b/src/emc/rs274ngc/interp_remap.cc @@ -99,7 +99,7 @@ bool Interp::remap_in_progress(const char *code) } -int Interp::convert_remapped_code(block_pointer block, +int Interp::convert_remapped_code(block_pointer /*block*/, setup_pointer settings, int phase, char letter, diff --git a/src/emc/rs274ngc/interpmodule.cc b/src/emc/rs274ngc/interpmodule.cc index 1c32272ad66..cae5448ae6a 100644 --- a/src/emc/rs274ngc/interpmodule.cc +++ b/src/emc/rs274ngc/interpmodule.cc @@ -133,7 +133,7 @@ static ParamClass param_wrapper ( Interp & inst) { return ParamClass(inst); } -static int get_task(Interp &i) { return _task; }; +static int get_task(Interp & /*i*/) { return _task; }; static const char *get_filename(Interp &i) { return i._setup.filename; }; static const char *get_linetext(Interp &i) { return i._setup.linetext; }; diff --git a/src/emc/rs274ngc/nurbs_additional_functions.cc b/src/emc/rs274ngc/nurbs_additional_functions.cc index 5f3893832dd..73cb78bdff6 100644 --- a/src/emc/rs274ngc/nurbs_additional_functions.cc +++ b/src/emc/rs274ngc/nurbs_additional_functions.cc @@ -264,7 +264,7 @@ NURBS_PLANE_POINT nurbs_G6_point(double u, unsigned int k, std::vector nurbs_control_points, std::vector knot_vector, std::vector< std::vector > A6) +double nurbs_Rdenx(double /*u*/, unsigned int k, std::vector nurbs_control_points, std::vector /*knot_vector*/, std::vector< std::vector > A6) { unsigned int i; double d = 0.0; @@ -810,7 +810,7 @@ std::vector nurbs_lenght_vector_creator(unsigned int k, std::vector span_knot_vector, std::vector lenght_vector) +double nurbs_lenght_tot(int j, std::vector /*span_knot_vector*/, std::vector lenght_vector) { double ltot=0; for(int i=0; i<=j; ++i) diff --git a/src/emc/sai/dummyemcstat.cc b/src/emc/sai/dummyemcstat.cc index 5e60912d450..7bb488e36c0 100644 --- a/src/emc/sai/dummyemcstat.cc +++ b/src/emc/sai/dummyemcstat.cc @@ -38,4 +38,4 @@ int emcAbortCleanup(EMC_ABORT reason, const char *message) return 0; } -extern void emctask_quit(int sig) {}; +extern void emctask_quit(int /*sig*/) {}; diff --git a/src/emc/sai/saicanon.cc b/src/emc/sai/saicanon.cc index 94397249626..ec6f690c5e5 100644 --- a/src/emc/sai/saicanon.cc +++ b/src/emc/sai/saicanon.cc @@ -122,7 +122,7 @@ void SET_XY_ROTATION(double t) { void SET_G5X_OFFSET(int index, double x, double y, double z, double a, double b, double c, - double u, double v, double w) { + double /*u*/, double /*v*/, double /*w*/) { ECHO_WITH_ARGS("%d, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f", index, x, y, z, a, b, c); @@ -143,7 +143,7 @@ void SET_G5X_OFFSET(int index, void SET_G92_OFFSET(double x, double y, double z, double a, double b, double c, - double u, double v, double w) { + double /*u*/, double /*v*/, double /*w*/) { ECHO_WITH_ARGS("%.4f, %.4f, %.4f, %.4f, %.4f, %.4f", x, y, z, a, b, c); _sai._program_position_x = _sai._program_position_x + _sai._g92_x - x; @@ -216,12 +216,12 @@ void SET_TRAVERSE_RATE(double rate) _sai._traverse_rate = rate; } -void STRAIGHT_TRAVERSE( int line_number, +void STRAIGHT_TRAVERSE( int /*line_number*/, double x, double y, double z , double a /*AA*/ , double b /*BB*/ , double c /*CC*/ - , double u, double v, double w + , double /*u*/, double /*v*/, double /*w*/ ) { ECHO_WITH_ARGS("%.4f, %.4f, %.4f" @@ -318,7 +318,7 @@ void STOP_SPEED_FEED_SYNCH() /* Machining Functions */ /* Machining Functions G_5_2 */ -void NURBS_G5_FEED(int lineno, std::vector nurbs_control_points, unsigned int nurbs_order, CANON_PLANE plane) { +void NURBS_G5_FEED(int /*lineno*/, std::vector nurbs_control_points, unsigned int /*nurbs_order*/, CANON_PLANE /*plane*/) { ECHO_WITH_ARGS("%lu, ...", (unsigned long)nurbs_control_points.size()); _sai._program_position_x = nurbs_control_points[nurbs_control_points.size()].NURBS_X; @@ -326,7 +326,7 @@ void NURBS_G5_FEED(int lineno, std::vector nurbs_control_po } /* Machining Functions G_6_2 */ -void NURBS_G6_FEED(int lineno, std::vector nurbs_control_points, unsigned int k, double feedrate, int l, CANON_PLANE plane) { +void NURBS_G6_FEED(int /*lineno*/, std::vector nurbs_control_points, unsigned int /*k*/, double /*feedrate*/, int /*l*/, CANON_PLANE /*plane*/) { //fprintf(_outfile, "%5d ", _line_number++); print_nc_line_number(); fprintf(_outfile, "saicanon NURBS_G6_FEED_(%lu, ...)\n", (unsigned long)nurbs_control_points.size()); @@ -335,13 +335,13 @@ void NURBS_G6_FEED(int lineno, std::vector nurbs_control _sai._program_position_y = nurbs_control_points[nurbs_control_points.size()].NURBS_Y; } -void ARC_FEED(int line_number, +void ARC_FEED(int /*line_number*/, double first_end, double second_end, double first_axis, double second_axis, int rotation, double axis_end_point , double a /*AA*/ , double b /*BB*/ , double c /*CC*/ - , double u, double v, double w + , double /*u*/, double /*v*/, double /*w*/ ) { ECHO_WITH_ARGS("%.4f, %.4f, %.4f, %.4f, %d, %.4f" @@ -377,12 +377,12 @@ void ARC_FEED(int line_number, _sai._program_position_c = c; /*CC*/ } -void STRAIGHT_FEED(int line_number, +void STRAIGHT_FEED(int /*line_number*/, double x, double y, double z , double a /*AA*/ , double b /*BB*/ , double c /*CC*/ - , double u, double v, double w + , double /*u*/, double /*v*/, double /*w*/ ) { ECHO_WITH_ARGS("%.4f, %.4f, %.4f" @@ -407,12 +407,12 @@ void STRAIGHT_FEED(int line_number, point towards the previous location after the probing, if the probe point is not the same as the previous point -- which it should not be. */ -void STRAIGHT_PROBE(int line_number, +void STRAIGHT_PROBE(int /*line_number*/, double x, double y, double z , double a /*AA*/ , double b /*BB*/ , double c /*CC*/ - , double u, double v, double w, unsigned char probe_type + , double /*u*/, double /*v*/, double /*w*/, unsigned char /*probe_type*/ ) { double distance; @@ -452,7 +452,7 @@ void STRAIGHT_PROBE(int line_number, } -void RIGID_TAP(int line_number, double x, double y, double z, double scale) +void RIGID_TAP(int /*line_number*/, double x, double y, double z, double /*scale*/) { ECHO_WITH_ARGS("%.4f, %.4f, %.4f", x, y, z); } @@ -471,14 +471,14 @@ void SET_SPINDLE_MODE(int spindle, double arg) { PRINT("SET_SPINDLE_MODE(%d %.4f)\n", spindle, arg); } -void START_SPINDLE_CLOCKWISE(int spindle, int wait_for_atspeed) +void START_SPINDLE_CLOCKWISE(int spindle, int /*wait_for_atspeed*/) { PRINT("START_SPINDLE_CLOCKWISE(%i)\n", spindle); _sai._spindle_turning[spindle] = ((_sai._spindle_speed[spindle] == 0) ? CANON_STOPPED : CANON_CLOCKWISE); } -void START_SPINDLE_COUNTERCLOCKWISE(int spindle, int wait_for_atspeed) +void START_SPINDLE_COUNTERCLOCKWISE(int spindle, int /*wait_for_atspeed*/) { PRINT("START_SPINDLE_COUNTERCLOCKWISE(%i)\n", spindle); _sai._spindle_turning[spindle] = ((_sai._spindle_speed[spindle] == 0) ? CANON_STOPPED : @@ -739,16 +739,16 @@ int GET_EXTERNAL_FEED_HOLD_ENABLE() {return 1;} int GET_EXTERNAL_AXIS_MASK() {return 0x3f;} // XYZABC machine double GET_EXTERNAL_ANGLE_UNITS() {return 1.0;} int GET_EXTERNAL_SELECTED_TOOL_SLOT() { return 0; } -int GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE(int spindle) {return so_enable;} -void START_SPEED_FEED_SYNCH(int spindle, double sync, bool vel) +int GET_EXTERNAL_SPINDLE_OVERRIDE_ENABLE(int /*spindle*/) {return so_enable;} +void START_SPEED_FEED_SYNCH(int /*spindle*/, double sync, bool vel) {PRINT("START_SPEED_FEED_SYNC(%f,%d)\n", sync, vel);} CANON_MOTION_MODE motion_mode; -int GET_EXTERNAL_DIGITAL_INPUT(int index, int def) { return def; } -double GET_EXTERNAL_ANALOG_INPUT(int index, double def) { return def; } -int WAIT(int index, int input_type, int wait_type, double timeout) { return 0; } -int UNLOCK_ROTARY(int line_no, int joint_num) {return 0;} -int LOCK_ROTARY(int line_no, int joint_num) {return 0;} +int GET_EXTERNAL_DIGITAL_INPUT(int /*index*/, int def) { return def; } +double GET_EXTERNAL_ANALOG_INPUT(int /*index*/, double def) { return def; } +int WAIT(int /*index*/, int /*input_type*/, int /*wait_type*/, double /*timeout*/) { return 0; } +int UNLOCK_ROTARY(int /*line_no*/, int /*joint_num*/) {return 0;} +int LOCK_ROTARY(int /*line_no*/, int /*joint_num*/) {return 0;} /* Returns the system feed rate */ double GET_EXTERNAL_FEED_RATE() @@ -1190,6 +1190,6 @@ StandaloneInterpInternals::StandaloneInterpInternals() : _toolchanger_reason(0) { } -void UPDATE_TAG(StateTag tag){ +void UPDATE_TAG(StateTag /*tag*/){ //Do nothing } diff --git a/src/emc/task/emccanon.cc b/src/emc/task/emccanon.cc index ff595798ee3..3b83bfec075 100644 --- a/src/emc/task/emccanon.cc +++ b/src/emc/task/emccanon.cc @@ -500,7 +500,7 @@ void USE_LENGTH_UNITS(CANON_UNITS in_unit) } /* Free Space Motion */ -void SET_TRAVERSE_RATE(double rate) +void SET_TRAVERSE_RATE(double /*rate*/) { // nothing need be done here } @@ -536,7 +536,7 @@ void SET_FEED_RATE(double rate) } } -void SET_FEED_REFERENCE(CANON_FEED_REFERENCE reference) +void SET_FEED_REFERENCE(CANON_FEED_REFERENCE /*reference*/) { // nothing need be done here } @@ -1214,12 +1214,12 @@ void SELECT_PLANE(CANON_PLANE in_plane) canon.activePlane = in_plane; } -void SET_CUTTER_RADIUS_COMPENSATION(double radius) +void SET_CUTTER_RADIUS_COMPENSATION(double /*radius*/) { // nothing need be done here } -void START_CUTTER_RADIUS_COMPENSATION(int side) +void START_CUTTER_RADIUS_COMPENSATION(int /*side*/) { // nothing need be done here } @@ -1382,7 +1382,7 @@ biarc(int lineno, double p0x, double p0y, double tsx, double tsy, void NURBS_G5_FEED(int lineno, std::vector nurbs_control_points, unsigned int nurbs_order, - CANON_PLANE plane) + CANON_PLANE /*plane*/) { flush_segments(); @@ -1859,7 +1859,7 @@ void NURBS_FEED_G6_2_WITH_BIARCH_DU_CONST(int lineno, std::vector nurbs_control_points, std::vector knot_vector, - unsigned int k, double feedrate) + unsigned int k, double /*feedrate*/) { double u = knot_vector[0]; int dim = nurbs_control_points.size(); @@ -2191,7 +2191,7 @@ void NURBS_FEED_NO_SUBDIVISION(int lineno, void NURBS_G6_FEED(int lineno, std::vector nurbs_control_points, unsigned int nurbs_order, - double feedrate, int Q_option, CANON_PLANE plane) + double feedrate, int Q_option, CANON_PLANE /*plane*/) { // (L_option: NICU, NICL, NICC see publication from Lo Valvo and Drago) int n = nurbs_control_points.size() - 1 - nurbs_order; std::vector knot_vector = @@ -2960,7 +2960,7 @@ void RELOAD_TOOLDATA(void) /* Misc Functions */ -void CLAMP_AXIS(CANON_AXIS axis) +void CLAMP_AXIS(CANON_AXIS /*axis*/) { /*! \todo FIXME-- unimplemented */ } @@ -3220,7 +3220,7 @@ void TURN_PROBE_ON() SIMPLE_COMMAND_(); } -void UNCLAMP_AXIS(CANON_AXIS axis) +void UNCLAMP_AXIS(CANON_AXIS /*axis*/) { /*! \todo FIXME-- unimplemented */ } @@ -3853,7 +3853,7 @@ CANON_PLANE GET_EXTERNAL_PLANE() } /* returns current value of the digital input selected by index.*/ -int GET_EXTERNAL_DIGITAL_INPUT(int index, int def) +int GET_EXTERNAL_DIGITAL_INPUT(int index, int /*def*/) { if ((index < 0) || (index >= EMCMOT_MAX_DIO)) return -1; @@ -3867,7 +3867,7 @@ int GET_EXTERNAL_DIGITAL_INPUT(int index, int def) return (emcStatus->motion.synch_di[index] != 0) ? 1 : 0; } -double GET_EXTERNAL_ANALOG_INPUT(int index, double def) +double GET_EXTERNAL_ANALOG_INPUT(int index, double /*def*/) { /* returns current value of the analog input selected by index.*/ #ifdef INPUT_DEBUG @@ -4087,7 +4087,7 @@ int UNLOCK_ROTARY(int line_number, int joint_num) return 0; } -int LOCK_ROTARY(int line_number, int joint_num) { +int LOCK_ROTARY(int /*line_number*/, int /*joint_num*/) { canon.rotary_unlock_for_traverse = -1; return 0; } diff --git a/src/emc/task/emctaskmain.cc b/src/emc/task/emctaskmain.cc index d8e98e905a7..4a971ed2d2a 100644 --- a/src/emc/task/emctaskmain.cc +++ b/src/emc/task/emctaskmain.cc @@ -454,7 +454,7 @@ static int max_mdi_queued_commands = MAX_MDI_QUEUE; It returns 0 if all messages check out, -1 if any of them fail. If one fails, the rest of the list is not checked. */ -static int checkInterpList(NML_INTERP_LIST * il, EMC_STAT * stat) +static int checkInterpList(NML_INTERP_LIST * il, EMC_STAT * /*stat*/) { while (il->len() > 0) { auto cmd = il->get(); diff --git a/src/emc/task/taskclass.cc b/src/emc/task/taskclass.cc index 3f9bea506f9..11836e30754 100644 --- a/src/emc/task/taskclass.cc +++ b/src/emc/task/taskclass.cc @@ -108,7 +108,7 @@ int emcToolSetOffset(int pocket, int toolno, EmcPose offset, double diameter, frontangle, backangle, orientation); } int emcToolSetNumber(int number) { return task_methods->emcToolSetNumber(number); } -int emcTaskOnce(const char *filename, EMC_IO_STAT &emcioStatus) +int emcTaskOnce(const char * /*filename*/, EMC_IO_STAT &emcioStatus) { task_methods = new Task(emcioStatus); if (int res = task_methods->iocontrol_hal_init()) { @@ -356,7 +356,7 @@ int Task::emcIoInit()//EMC_TOOL_INIT return 0; } -int Task::emcIoAbort(EMC_ABORT reason)//EMC_TOOL_ABORT_TYPE +int Task::emcIoAbort(EMC_ABORT /*reason*/)//EMC_TOOL_ABORT_TYPE { // only used in v2 // this gets sent on any Task Abort, so it might be safer to stop diff --git a/src/emc/task/taskintf.cc b/src/emc/task/taskintf.cc index 8ca160d9387..6b50d400a33 100644 --- a/src/emc/task/taskintf.cc +++ b/src/emc/task/taskintf.cc @@ -1334,7 +1334,7 @@ int emcTrajResume() return usrmotWriteEmcmotCommand(&emcmotCommand); } -int emcTrajDelay(double delay) +int emcTrajDelay(double /*delay*/) { /* nothing need be done here - it's done in task controller */ @@ -1905,7 +1905,7 @@ int emcSpindleDecrease(int spindle) return usrmotWriteEmcmotCommand(&emcmotCommand); } -int emcSpindleConstant(int spindle) +int emcSpindleConstant(int /*spindle*/) { return 0; // nothing to do } diff --git a/src/emc/tooldata/tooldata_db.cc b/src/emc/tooldata/tooldata_db.cc index f63a4f692c2..e774a3d2ee1 100644 --- a/src/emc/tooldata/tooldata_db.cc +++ b/src/emc/tooldata/tooldata_db.cc @@ -64,7 +64,7 @@ static int pipes[NUM_PIPES][2]; static bool is_random_toolchanger = 0; static char db_childname[PATH_MAX]; -static void handle_sigchild(int s) +static void handle_sigchild(int /*s*/) { pid_t pid; int status; @@ -89,7 +89,7 @@ static void handle_sigchild(int s) #endif } -static int fork_create(int myargc,char *const myargv[]) +static int fork_create(int /*myargc*/, char *const myargv[]) { // O_DIRECT:packet mode if (pipe2(pipes[PARENT_READ_PIPE],O_DIRECT)) { diff --git a/src/emc/usr_intf/axis/extensions/_toglmodule.c b/src/emc/usr_intf/axis/extensions/_toglmodule.c index 910808fd6ce..42079149c10 100644 --- a/src/emc/usr_intf/axis/extensions/_toglmodule.c +++ b/src/emc/usr_intf/axis/extensions/_toglmodule.c @@ -27,6 +27,7 @@ static Tcl_Interp *get_interpreter(PyObject *tkapp) { } PyObject *install(PyObject *s, PyObject *arg) { + (void)s; Tcl_Interp *trp = get_interpreter(arg); if(!trp) { PyErr_SetString(PyExc_TypeError, "get_interpreter() returned NULL"); diff --git a/src/emc/usr_intf/axis/extensions/emcmodule.cc b/src/emc/usr_intf/axis/extensions/emcmodule.cc index 797f6fbea3b..a82796f9e31 100644 --- a/src/emc/usr_intf/axis/extensions/emcmodule.cc +++ b/src/emc/usr_intf/axis/extensions/emcmodule.cc @@ -102,7 +102,7 @@ struct pyErrorChannel { static PyObject *m = NULL, *error = NULL; -static int Ini_init(pyIniFile *self, PyObject *a, PyObject *k) { +static int Ini_init(pyIniFile *self, PyObject *a, PyObject * /*k*/) { char *inifile; if(!PyArg_ParseTuple(a, "s", &inifile)) return -1; @@ -265,7 +265,7 @@ static const char *get_nmlfile(void) { return PyUnicode_AsUTF8(fileobj); } -static int Stat_init(pyStatChannel *self, PyObject *a, PyObject *k) { +static int Stat_init(pyStatChannel *self, PyObject * /*a*/, PyObject * /*k*/) { const char *file = get_nmlfile(); if(file == NULL) return -1; @@ -295,7 +295,7 @@ static bool check_stat(RCS_STAT_CHANNEL *emcStatusBuffer) { static bool initialized=0; -static PyObject *poll(pyStatChannel *s, PyObject *o) { +static PyObject *poll(pyStatChannel *s, PyObject * /*o*/) { #ifdef TOOL_NML //{ if (!initialized) { //fprintf(stderr,"%8d tool_nml_register\n",getpid()); @@ -343,7 +343,7 @@ static void dict_add(PyObject *d, const char *name, int v) { Py_XDECREF(o); } -static PyObject *toolinfo(pyStatChannel *s, PyObject *o) { +static PyObject *toolinfo(pyStatChannel * /*s*/, PyObject *o) { /*Note: this method uses the tooldata interface and is included ** as a Stat method for convenience. ** pyStatChannel is not used but an initial stat poll() @@ -761,7 +761,7 @@ static PyStructSequence_Desc tool_result_desc = { static PyTypeObject ToolResultType; -static PyObject *Stat_tool_table(pyStatChannel *s) { +static PyObject *Stat_tool_table(pyStatChannel * /*s*/) { PyObject *res; int j = 0; @@ -895,7 +895,7 @@ static PyTypeObject Stat_Type = { #endif }; -static int Command_init(pyCommandChannel *self, PyObject *a, PyObject *k) { +static int Command_init(pyCommandChannel *self, PyObject * /*a*/, PyObject * /*k*/) { const char *file = get_nmlfile(); if(file == NULL) return -1; @@ -1176,7 +1176,7 @@ static PyObject *brake(pyCommandChannel *s, PyObject *o) { return Py_None; } -static PyObject *load_tool_table(pyCommandChannel *s, PyObject *o) { +static PyObject *load_tool_table(pyCommandChannel *s, PyObject * /*o*/) { EMC_TOOL_LOAD_TOOL_TABLE m; m.file[0] = '\0'; // don't override the INI file emcSendCommand(s, m); @@ -1184,14 +1184,14 @@ static PyObject *load_tool_table(pyCommandChannel *s, PyObject *o) { return Py_None; } -static PyObject *emcabort(pyCommandChannel *s, PyObject *o) { +static PyObject *emcabort(pyCommandChannel *s, PyObject * /*o*/) { EMC_TASK_ABORT m; emcSendCommand(s, m); Py_INCREF(Py_None); return Py_None; } -static PyObject *override_limits(pyCommandChannel *s, PyObject *o) { +static PyObject *override_limits(pyCommandChannel *s, PyObject * /*o*/) { EMC_JOINT_OVERRIDE_LIMITS m; m.joint = 0; // same number for all emcSendCommand(s, m); @@ -1273,7 +1273,7 @@ static PyObject *jog(pyCommandChannel *s, PyObject *o) { return Py_None; } -static PyObject *reset_interpreter(pyCommandChannel *s, PyObject *o) { +static PyObject *reset_interpreter(pyCommandChannel *s, PyObject * /*o*/) { EMC_TASK_PLAN_INIT m; emcSendCommand(s, m); Py_INCREF(Py_None); @@ -1687,7 +1687,7 @@ static PyTypeObject Command_Type = { #endif }; -static int Error_init(pyErrorChannel *self, PyObject *a, PyObject *k) { +static int Error_init(pyErrorChannel *self, PyObject * /*a*/, PyObject * /*k*/) { const char *file = get_nmlfile(); if(file == NULL) return -1; @@ -1955,7 +1955,7 @@ static void line9b(const double p1[9], const double p2[9], const char *geometry) } } -static PyObject *pyline9(PyObject *s, PyObject *o) { +static PyObject *pyline9(PyObject * /*s*/, PyObject *o) { double pt1[9], pt2[9]; const char *geometry; @@ -1974,7 +1974,7 @@ static PyObject *pyline9(PyObject *s, PyObject *o) { Py_RETURN_NONE; } -static PyObject *pyvertex9(PyObject *s, PyObject *o) { +static PyObject *pyvertex9(PyObject * /*s*/, PyObject *o) { double pt1[9], pt[3]; char *geometry; if(!PyArg_ParseTuple(o, "s(ddddddddd):vertex9", @@ -1988,7 +1988,7 @@ static PyObject *pyvertex9(PyObject *s, PyObject *o) { return Py_BuildValue("(ddd)", &pt[0], &pt[1], &pt[2]); } -static PyObject *pygui_respect_offsets (PyObject *s, PyObject *o) { +static PyObject *pygui_respect_offsets (PyObject * /*s*/, PyObject *o) { char* coords; if(!PyArg_ParseTuple(o, "si",&coords, &roffsets.respect_offsets)) { @@ -2005,7 +2005,7 @@ static PyObject *pygui_respect_offsets (PyObject *s, PyObject *o) { return Py_None; } -static PyObject *pygui_rot_offsets(PyObject *s, PyObject *o) { +static PyObject *pygui_rot_offsets(PyObject * /*s*/, PyObject *o) { if(!PyArg_ParseTuple(o, "ddd", &roffsets.x,&roffsets.y,&roffsets.z)) { return NULL; } @@ -2013,7 +2013,7 @@ static PyObject *pygui_rot_offsets(PyObject *s, PyObject *o) { return Py_None; } -static PyObject *pydraw_lines(PyObject *s, PyObject *o) { +static PyObject *pydraw_lines(PyObject * /*s*/, PyObject *o) { PyListObject *li; int for_selection = 0; int i; @@ -2061,7 +2061,7 @@ static PyObject *pydraw_lines(PyObject *s, PyObject *o) { return Py_None; } -static PyObject *pydraw_dwells(PyObject *s, PyObject *o) { +static PyObject *pydraw_dwells(PyObject * /*s*/, PyObject *o) { PyListObject *li; int for_selection = 0, is_lathe = 0, i, n; double alpha; @@ -2183,7 +2183,7 @@ static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static void LOCK() { pthread_mutex_lock(&mutex); } static void UNLOCK() { pthread_mutex_unlock(&mutex); } -static int Logger_init(pyPositionLogger *self, PyObject *a, PyObject *k) { +static int Logger_init(pyPositionLogger *self, PyObject *a, PyObject * /*k*/) { char *geometry; struct color *c = self->colors; self->p = (logger_point*)malloc(0); @@ -2388,19 +2388,19 @@ static PyObject *Logger_start(pyPositionLogger *s, PyObject *o) { return Py_None; } -static PyObject* Logger_clear(pyPositionLogger *s, PyObject *o) { +static PyObject* Logger_clear(pyPositionLogger *s, PyObject * /*o*/) { s->clear = true; Py_INCREF(Py_None); return Py_None; } -static PyObject* Logger_stop(pyPositionLogger *s, PyObject *o) { +static PyObject* Logger_stop(pyPositionLogger *s, PyObject * /*o*/) { s->exit = true; Py_INCREF(Py_None); return Py_None; } -static PyObject* Logger_call(pyPositionLogger *s, PyObject *o) { +static PyObject* Logger_call(pyPositionLogger *s, PyObject * /*o*/) { if(!s->clear) { LOCK(); if(s->is_xyuv) { diff --git a/src/emc/usr_intf/axis/extensions/togl.c b/src/emc/usr_intf/axis/extensions/togl.c index d4ea65e1877..694234dbf54 100644 --- a/src/emc/usr_intf/axis/extensions/togl.c +++ b/src/emc/usr_intf/axis/extensions/togl.c @@ -1599,7 +1599,7 @@ static LRESULT CALLBACK Win32WinProc( HWND hwnd, UINT message, static Window Togl_CreateWindow(Tk_Window tkwin, Window parent, ClientData instanceData) { - + (void)tkwin; struct Togl *togl = (struct Togl*) instanceData; XVisualInfo *visinfo = NULL; Display *dpy; diff --git a/src/emc/usr_intf/emclcd.cc b/src/emc/usr_intf/emclcd.cc index 2fe396fd3d0..5fa49bfb157 100644 --- a/src/emc/usr_intf/emclcd.cc +++ b/src/emc/usr_intf/emclcd.cc @@ -1666,7 +1666,7 @@ static int sockMain() return 0; } -static void sigQuit(int sig) +static void sigQuit(int /*sig*/) { quitting = 1; diff --git a/src/emc/usr_intf/emcrsh.cc b/src/emc/usr_intf/emcrsh.cc index b34f1acaee5..d49c69375ce 100644 --- a/src/emc/usr_intf/emcrsh.cc +++ b/src/emc/usr_intf/emcrsh.cc @@ -548,7 +548,7 @@ static int initSocket() return 0; } -static void sigQuit(int sig) +static void sigQuit(int /*sig*/) { thisQuit(); } @@ -741,7 +741,7 @@ static cmdResponseType setCommProt(connectionRecType *context) return rtNoError; } -static cmdResponseType setDebug(connectionRecType *context) +static cmdResponseType setDebug(connectionRecType * /*context*/) { char *pLevel; int level; @@ -783,7 +783,7 @@ static cmdResponseType setSetWait(connectionRecType *context) return setWaitMode(context); } -static cmdResponseType setMachine(connectionRecType *context) +static cmdResponseType setMachine(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkOnOff(s)) { @@ -798,7 +798,7 @@ static cmdResponseType setMachine(connectionRecType *context) return rtNoError; } -static cmdResponseType setEStop(connectionRecType *context) +static cmdResponseType setEStop(connectionRecType * /*context*/) { char *state = strtok(NULL, delims); switch (checkOnOff(state)) { @@ -817,7 +817,7 @@ static cmdResponseType setEStop(connectionRecType *context) return rtNoError; } -static cmdResponseType setWait(connectionRecType *context) +static cmdResponseType setWait(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkReceivedDoneNone(s)) { @@ -834,7 +834,7 @@ static cmdResponseType setWait(connectionRecType *context) return rtNoError; } -static cmdResponseType setTimeout(connectionRecType *context) +static cmdResponseType setTimeout(connectionRecType * /*context*/) { float Timeout; @@ -845,7 +845,7 @@ static cmdResponseType setTimeout(connectionRecType *context) return rtNoError; } -static cmdResponseType setUpdate(connectionRecType *context) +static cmdResponseType setUpdate(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkNoneAuto(s)) { @@ -856,7 +856,7 @@ static cmdResponseType setUpdate(connectionRecType *context) return rtNoError; } -static cmdResponseType setMode(connectionRecType *context) +static cmdResponseType setMode(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkManualAutoMDI(s)) { @@ -874,7 +874,7 @@ static cmdResponseType setMode(connectionRecType *context) return rtNoError; } -static cmdResponseType setMist(connectionRecType *context) +static cmdResponseType setMist(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkOnOff(s)) { @@ -889,7 +889,7 @@ static cmdResponseType setMist(connectionRecType *context) return rtNoError; } -static cmdResponseType setFlood(connectionRecType *context) +static cmdResponseType setFlood(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkOnOff(s)) { @@ -1030,7 +1030,7 @@ static cmdResponseType setBrake(connectionRecType *context) return rtNoError; } -static cmdResponseType setLoadToolTable(connectionRecType *context) +static cmdResponseType setLoadToolTable(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); if (!s) return rtStandardError; @@ -1038,7 +1038,7 @@ static cmdResponseType setLoadToolTable(connectionRecType *context) return rtNoError; } -static cmdResponseType setToolOffset(connectionRecType *context) +static cmdResponseType setToolOffset(connectionRecType * /*context*/) { int tool; float length, diameter; @@ -1057,7 +1057,7 @@ static cmdResponseType setToolOffset(connectionRecType *context) return rtNoError; } -static cmdResponseType setOverrideLimits(connectionRecType *context) +static cmdResponseType setOverrideLimits(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkOnOff(s)) { @@ -1068,14 +1068,14 @@ static cmdResponseType setOverrideLimits(connectionRecType *context) return rtNoError; } -static cmdResponseType setMDI(connectionRecType *context) +static cmdResponseType setMDI(connectionRecType * /*context*/) { char *s = strtok(NULL, "\n\r\0"); if (sendMdiCmd(s) !=0) return rtStandardError; return rtNoError; } -static cmdResponseType setHome(connectionRecType *context) +static cmdResponseType setHome(connectionRecType * /*context*/) { int joint; @@ -1110,7 +1110,7 @@ static int axisnumber(char *s) { return axis; } -static cmdResponseType setJogStop(connectionRecType *context) +static cmdResponseType setJogStop(connectionRecType * /*context*/) { int ja,jnum,jjogmode; char aletter; @@ -1137,7 +1137,7 @@ static cmdResponseType setJogStop(connectionRecType *context) return rtNoError; } -static cmdResponseType setJog(connectionRecType *context) +static cmdResponseType setJog(connectionRecType * /*context*/) { int ja,jnum,jjogmode; char aletter; @@ -1165,7 +1165,7 @@ static cmdResponseType setJog(connectionRecType *context) return rtNoError; } -static cmdResponseType setFeedOverride(connectionRecType *context) +static cmdResponseType setFeedOverride(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); if (!s) @@ -1181,7 +1181,7 @@ static cmdResponseType setFeedOverride(connectionRecType *context) return rtNoError; } -static cmdResponseType setJogIncr(connectionRecType *context) +static cmdResponseType setJogIncr(connectionRecType * /*context*/) { int jnum,ja,jjogmode; char aletter; @@ -1218,7 +1218,7 @@ static cmdResponseType setJogIncr(connectionRecType *context) return rtNoError; } -static cmdResponseType setTaskPlanInit(connectionRecType *context) +static cmdResponseType setTaskPlanInit(connectionRecType * /*context*/) { if (sendTaskPlanInit() != 0) return rtStandardError; return rtNoError; @@ -1243,7 +1243,7 @@ static cmdResponseType setOpen(connectionRecType *context) return rtNoError; } -static cmdResponseType setRun(connectionRecType *context) +static cmdResponseType setRun(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); if (!s) { // run from beginning @@ -1263,31 +1263,31 @@ static cmdResponseType setRun(connectionRecType *context) return rtNoError; } -static cmdResponseType setPause(connectionRecType *context) +static cmdResponseType setPause(connectionRecType * /*context*/) { if (sendProgramPause() != 0) return rtStandardError; return rtNoError; } -static cmdResponseType setResume(connectionRecType *context) +static cmdResponseType setResume(connectionRecType * /*context*/) { if (sendProgramResume() != 0) return rtStandardError; return rtNoError; } -static cmdResponseType setStep(connectionRecType *context) +static cmdResponseType setStep(connectionRecType * /*context*/) { if (sendProgramStep() != 0) return rtStandardError; return rtNoError; } -static cmdResponseType setAbort(connectionRecType *context) +static cmdResponseType setAbort(connectionRecType * /*context*/) { if (sendAbort() != 0) return rtStandardError; return rtNoError; } -static cmdResponseType setLinearUnitConversion(connectionRecType *context) +static cmdResponseType setLinearUnitConversion(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkConversionStr(s)) { @@ -1301,7 +1301,7 @@ static cmdResponseType setLinearUnitConversion(connectionRecType *context) return rtNoError; } -static cmdResponseType setAngularUnitConversion(connectionRecType *context) +static cmdResponseType setAngularUnitConversion(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkAngularConversionStr(s)) { @@ -1315,7 +1315,7 @@ static cmdResponseType setAngularUnitConversion(connectionRecType *context) return rtNoError; } -static cmdResponseType setTeleopEnable(connectionRecType *context) +static cmdResponseType setTeleopEnable(connectionRecType * /*context*/) { char *s = strtok(NULL, delims); switch (checkOnOff(s)) { @@ -1330,7 +1330,7 @@ static cmdResponseType setTeleopEnable(connectionRecType *context) return rtNoError; } -static cmdResponseType setProbe(connectionRecType *context) +static cmdResponseType setProbe(connectionRecType * /*context*/) { float x, y, z; @@ -1353,7 +1353,7 @@ static cmdResponseType setProbe(connectionRecType *context) return rtNoError; } -static cmdResponseType setProbeClear(connectionRecType *context) +static cmdResponseType setProbeClear(connectionRecType * /*context*/) { if(sendClearProbeTrippedFlag() != 0) return rtStandardError; return rtNoError; @@ -1417,7 +1417,7 @@ static cmdResponseType setSpindleOverride(connectionRecType *context) return rtNoError; } -static cmdResponseType setOptionalStop(connectionRecType *context) +static cmdResponseType setOptionalStop(connectionRecType * /*context*/) { int value; char *s = strtok(NULL, delims); diff --git a/src/emc/usr_intf/emcsh.cc b/src/emc/usr_intf/emcsh.cc index 4cc41f21024..8fc52491095 100644 --- a/src/emc/usr_intf/emcsh.cc +++ b/src/emc/usr_intf/emcsh.cc @@ -336,7 +336,7 @@ return TCL_ERROR;\ } -static void thisQuit(ClientData clientData) +static void thisQuit(ClientData /*clientData*/) { EMC_NULL emc_null_msg; @@ -369,8 +369,8 @@ static void thisQuit(ClientData clientData) /* EMC command functions */ -static int emc_plat(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_plat(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { if (objc == 1) { setresult(interp,"Linux"); @@ -381,7 +381,7 @@ static int emc_plat(ClientData clientdata, return TCL_ERROR; } -static int emc_ini(ClientData clientdata, +static int emc_ini(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { IniFile inifile; @@ -420,7 +420,7 @@ static int emc_ini(ClientData clientdata, return TCL_OK; } -static int emc_Debug(ClientData clientdata, +static int emc_Debug(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { Tcl_Obj *debug_obj; @@ -452,7 +452,7 @@ static int emc_Debug(ClientData clientdata, return TCL_ERROR; } -static int emc_set_wait(ClientData clientdata, +static int emc_set_wait(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -490,7 +490,7 @@ static int emc_set_wait(ClientData clientdata, return TCL_ERROR; } -static int emc_wait(ClientData clientdata, +static int emc_wait(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr; @@ -516,7 +516,7 @@ static int emc_wait(ClientData clientdata, return TCL_ERROR; } -static int emc_set_timeout(ClientData clientdata, +static int emc_set_timeout(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -541,7 +541,7 @@ static int emc_set_timeout(ClientData clientdata, return TCL_ERROR; } -static int emc_update(ClientData clientdata, +static int emc_update(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -569,8 +569,8 @@ static int emc_update(ClientData clientdata, return TCL_OK; } -static int emc_time(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_time(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc == 1) { @@ -582,8 +582,8 @@ static int emc_time(ClientData clientdata, return TCL_ERROR; } -static int emc_error(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_error(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { CHECKEMC @@ -607,9 +607,9 @@ static int emc_error(ClientData clientdata, return TCL_ERROR; } -static int emc_operator_text(ClientData clientdata, +static int emc_operator_text(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC @@ -633,9 +633,9 @@ static int emc_operator_text(ClientData clientdata, return TCL_ERROR; } -static int emc_operator_display(ClientData clientdata, +static int emc_operator_display(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC @@ -659,7 +659,7 @@ static int emc_operator_display(ClientData clientdata, return TCL_ERROR; } -static int emc_estop(ClientData clientdata, +static int emc_estop(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr; @@ -694,7 +694,7 @@ static int emc_estop(ClientData clientdata, return TCL_ERROR; } -static int emc_machine(ClientData clientdata, +static int emc_machine(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -730,7 +730,7 @@ static int emc_machine(ClientData clientdata, return TCL_ERROR; } -static int emc_mode(ClientData clientdata, +static int emc_mode(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr; @@ -778,7 +778,7 @@ static int emc_mode(ClientData clientdata, return TCL_ERROR; } -static int emc_mist(ClientData clientdata, +static int emc_mist(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr; @@ -813,7 +813,7 @@ static int emc_mist(ClientData clientdata, return TCL_ERROR; } -static int emc_flood(ClientData clientdata, +static int emc_flood(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr; @@ -847,7 +847,7 @@ static int emc_flood(ClientData clientdata, setresult(interp,"emc_flood: need 'on', 'off', or no args"); return TCL_ERROR; } -static int emc_spindle(ClientData clientdata, +static int emc_spindle(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -917,7 +917,7 @@ static int emc_spindle(ClientData clientdata, return TCL_ERROR; } -static int emc_brake(ClientData clientdata, +static int emc_brake(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char *objstr = NULL; @@ -965,8 +965,8 @@ static int emc_brake(ClientData clientdata, return TCL_ERROR; } -static int emc_tool(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_tool(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *toolobj; @@ -986,7 +986,7 @@ static int emc_tool(ClientData clientdata, return TCL_OK; } -static int emc_tool_offset(ClientData clientdata, +static int emc_tool_offset(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1054,7 +1054,7 @@ static int emc_tool_offset(ClientData clientdata, return TCL_OK; } -static int emc_load_tool_table(ClientData clientdata, +static int emc_load_tool_table(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1072,7 +1072,7 @@ static int emc_load_tool_table(ClientData clientdata, return TCL_OK; } -static int emc_set_tool_offset(ClientData clientdata, +static int emc_set_tool_offset(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1107,7 +1107,7 @@ static int emc_set_tool_offset(ClientData clientdata, return TCL_OK; } -static int emc_abs_cmd_pos(ClientData clientdata, +static int emc_abs_cmd_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1172,7 +1172,7 @@ static int emc_abs_cmd_pos(ClientData clientdata, return TCL_OK; } -static int emc_abs_act_pos(ClientData clientdata, +static int emc_abs_act_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1237,7 +1237,7 @@ static int emc_abs_act_pos(ClientData clientdata, return TCL_OK; } -static int emc_rel_cmd_pos(ClientData clientdata, +static int emc_rel_cmd_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1321,7 +1321,7 @@ static int emc_rel_cmd_pos(ClientData clientdata, return TCL_OK; } -static int emc_rel_act_pos(ClientData clientdata, +static int emc_rel_act_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1406,7 +1406,7 @@ static int emc_rel_act_pos(ClientData clientdata, return TCL_OK; } -static int emc_joint_pos(ClientData clientdata, +static int emc_joint_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1434,7 +1434,7 @@ static int emc_joint_pos(ClientData clientdata, return TCL_OK; } -static int emc_pos_offset(ClientData clientdata, +static int emc_pos_offset(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1499,7 +1499,7 @@ static int emc_pos_offset(ClientData clientdata, return TCL_OK; } -static int emc_joint_limit(ClientData clientdata, +static int emc_joint_limit(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1543,7 +1543,7 @@ static int emc_joint_limit(ClientData clientdata, return TCL_ERROR; } -static int emc_joint_fault(ClientData clientdata, +static int emc_joint_fault(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1578,7 +1578,7 @@ static int emc_joint_fault(ClientData clientdata, return TCL_ERROR; } -static int emc_override_limit(ClientData clientdata, +static int emc_override_limit(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1621,7 +1621,7 @@ static int emc_override_limit(ClientData clientdata, return TCL_ERROR; } -static int emc_joint_homed(ClientData clientdata, +static int emc_joint_homed(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1656,7 +1656,7 @@ static int emc_joint_homed(ClientData clientdata, return TCL_ERROR; } -static int emc_mdi(ClientData clientdata, +static int emc_mdi(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { char string[256]; @@ -1682,7 +1682,7 @@ static int emc_mdi(ClientData clientdata, return TCL_OK; } -static int emc_home(ClientData clientdata, +static int emc_home(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { int joint; @@ -1702,7 +1702,7 @@ static int emc_home(ClientData clientdata, return TCL_ERROR; } -static int emc_unhome(ClientData clientdata, +static int emc_unhome(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { int joint; @@ -1722,7 +1722,7 @@ static int emc_unhome(ClientData clientdata, return TCL_ERROR; } -static int emc_jog_stop(ClientData clientdata, +static int emc_jog_stop(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1750,7 +1750,7 @@ static int emc_jog_stop(ClientData clientdata, return TCL_OK; } -static int emc_jog(ClientData clientdata, +static int emc_jog(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { int joint; @@ -1784,7 +1784,7 @@ static int emc_jog(ClientData clientdata, return TCL_OK; } -static int emc_jog_incr(ClientData clientdata, +static int emc_jog_incr(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1823,7 +1823,7 @@ static int emc_jog_incr(ClientData clientdata, return TCL_OK; } -static int emc_feed_override(ClientData clientdata, +static int emc_feed_override(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1857,7 +1857,7 @@ static int emc_feed_override(ClientData clientdata, return TCL_ERROR; } -static int emc_rapid_override(ClientData clientdata, +static int emc_rapid_override(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1891,7 +1891,7 @@ static int emc_rapid_override(ClientData clientdata, return TCL_ERROR; } -static int emc_spindle_override(ClientData clientdata, +static int emc_spindle_override(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -1934,9 +1934,9 @@ static int emc_spindle_override(ClientData clientdata, return TCL_ERROR; } -static int emc_task_plan_init(ClientData clientdata, - Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) +static int emc_task_plan_init(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (0 != sendTaskPlanInit()) { @@ -1947,7 +1947,7 @@ static int emc_task_plan_init(ClientData clientdata, return TCL_OK; } -static int emc_open(ClientData clientdata, +static int emc_open(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { CHECKEMC @@ -1964,7 +1964,7 @@ static int emc_open(ClientData clientdata, return TCL_OK; } -static int emc_run(ClientData clientdata, +static int emc_run(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { int line; @@ -1991,8 +1991,8 @@ static int emc_run(ClientData clientdata, return TCL_OK; } -static int emc_pause(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_pause(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (0 != sendProgramPause()) { @@ -2003,7 +2003,7 @@ static int emc_pause(ClientData clientdata, return TCL_OK; } -static int emc_optional_stop(ClientData clientdata, +static int emc_optional_stop(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2039,9 +2039,9 @@ static int emc_optional_stop(ClientData clientdata, return TCL_ERROR; } -static int emc_resume(ClientData clientdata, - Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) +static int emc_resume(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (0 != sendProgramResume()) { @@ -2052,8 +2052,8 @@ static int emc_resume(ClientData clientdata, return TCL_OK; } -static int emc_step(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_step(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (0 != sendProgramStep()) { @@ -2064,8 +2064,8 @@ static int emc_step(ClientData clientdata, return TCL_OK; } -static int emc_abort(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +static int emc_abort(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (0 != sendAbort()) { @@ -2076,9 +2076,9 @@ static int emc_abort(ClientData clientdata, return TCL_OK; } -static int emc_program(ClientData clientdata, +static int emc_program(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2099,9 +2099,9 @@ static int emc_program(ClientData clientdata, return TCL_OK; } -static int emc_program_status(ClientData clientdata, +static int emc_program_status(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2134,9 +2134,9 @@ static int emc_program_status(ClientData clientdata, return TCL_OK; } -static int emc_program_line(ClientData clientdata, +static int emc_program_line(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *lineobj; int programActiveLine = 0; @@ -2178,9 +2178,9 @@ static int emc_program_line(ClientData clientdata, return TCL_OK; } -static int emc_program_codes(ClientData clientdata, +static int emc_program_codes(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { char codes_string[256]; char string[256]; @@ -2231,7 +2231,7 @@ static int emc_program_codes(ClientData clientdata, return TCL_OK; } -static int emc_joint_type(ClientData clientdata, +static int emc_joint_type(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2272,7 +2272,7 @@ static int emc_joint_type(ClientData clientdata, return TCL_ERROR; } -static int emc_joint_units(ClientData clientdata, +static int emc_joint_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2357,9 +2357,9 @@ static int emc_joint_units(ClientData clientdata, return TCL_ERROR; } -static int emc_program_linear_units(ClientData clientdata, +static int emc_program_linear_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2397,9 +2397,9 @@ static int emc_program_linear_units(ClientData clientdata, return TCL_OK; } -static int emc_program_angular_units(ClientData clientdata, +static int emc_program_angular_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2416,9 +2416,9 @@ static int emc_program_angular_units(ClientData clientdata, return TCL_OK; } -static int emc_user_linear_units(ClientData clientdata, +static int emc_user_linear_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2453,9 +2453,9 @@ static int emc_user_linear_units(ClientData clientdata, return TCL_OK; } -static int emc_user_angular_units(ClientData clientdata, +static int emc_user_angular_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2490,9 +2490,9 @@ static int emc_user_angular_units(ClientData clientdata, return TCL_OK; } -static int emc_display_linear_units(ClientData clientdata, +static int emc_display_linear_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2535,9 +2535,9 @@ static int emc_display_linear_units(ClientData clientdata, return TCL_OK; } -static int emc_display_angular_units(ClientData clientdata, +static int emc_display_angular_units(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { CHECKEMC if (objc != 1) { @@ -2570,7 +2570,7 @@ static int emc_display_angular_units(ClientData clientdata, return TCL_OK; } -static int emc_linear_unit_conversion(ClientData clientdata, +static int emc_linear_unit_conversion(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2627,7 +2627,7 @@ static int emc_linear_unit_conversion(ClientData clientdata, return TCL_ERROR; } -static int emc_angular_unit_conversion(ClientData clientdata, +static int emc_angular_unit_conversion(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2684,9 +2684,9 @@ static int emc_angular_unit_conversion(ClientData clientdata, return TCL_ERROR; } -static int emc_task_command(ClientData clientdata, +static int emc_task_command(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandobj; @@ -2706,9 +2706,9 @@ static int emc_task_command(ClientData clientdata, return TCL_OK; } -static int emc_task_command_number(ClientData clientdata, +static int emc_task_command_number(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandnumber; @@ -2728,9 +2728,9 @@ static int emc_task_command_number(ClientData clientdata, return TCL_OK; } -static int emc_task_command_status(ClientData clientdata, +static int emc_task_command_status(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandstatus; @@ -2750,9 +2750,9 @@ static int emc_task_command_status(ClientData clientdata, return TCL_OK; } -static int emc_io_command(ClientData clientdata, +static int emc_io_command(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandobj; @@ -2772,9 +2772,9 @@ static int emc_io_command(ClientData clientdata, return TCL_OK; } -static int emc_io_command_number(ClientData clientdata, +static int emc_io_command_number(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandnumber; @@ -2794,9 +2794,9 @@ static int emc_io_command_number(ClientData clientdata, return TCL_OK; } -static int emc_io_command_status(ClientData clientdata, +static int emc_io_command_status(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandstatus; @@ -2816,9 +2816,9 @@ static int emc_io_command_status(ClientData clientdata, return TCL_OK; } -static int emc_motion_command(ClientData clientdata, +static int emc_motion_command(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandobj; @@ -2838,9 +2838,9 @@ static int emc_motion_command(ClientData clientdata, return TCL_OK; } -static int emc_motion_command_number(ClientData clientdata, +static int emc_motion_command_number(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandnumber; @@ -2860,9 +2860,9 @@ static int emc_motion_command_number(ClientData clientdata, return TCL_OK; } -static int emc_motion_command_status(ClientData clientdata, +static int emc_motion_command_status(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { Tcl_Obj *commandstatus; @@ -2882,7 +2882,7 @@ static int emc_motion_command_status(ClientData clientdata, return TCL_OK; } -static int emc_joint_backlash(ClientData clientdata, +static int emc_joint_backlash(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2924,7 +2924,7 @@ static int emc_joint_backlash(ClientData clientdata, } } -static int emc_joint_enable(ClientData clientdata, +static int emc_joint_enable(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2962,7 +2962,7 @@ static int emc_joint_enable(ClientData clientdata, return TCL_OK; } -static int emc_joint_load_comp(ClientData clientdata, +static int emc_joint_load_comp(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -2994,7 +2994,7 @@ static int emc_joint_load_comp(ClientData clientdata, return TCL_OK; } -int emc_teleop_enable(ClientData clientdata, +int emc_teleop_enable(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -3018,9 +3018,9 @@ int emc_teleop_enable(ClientData clientdata, return TCL_OK; } -int emc_kinematics_type(ClientData clientdata, - Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) +int emc_kinematics_type(ClientData /*clientdata*/, + Tcl_Interp * interp, int /*objc*/, + Tcl_Obj * CONST * /*objv*/) { if (emcUpdateType == EMC_UPDATE_AUTO) { @@ -3033,8 +3033,8 @@ int emc_kinematics_type(ClientData clientdata, return TCL_OK; } -int emc_probe_clear(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +int emc_probe_clear(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { if (objc != 1) { setresult(interp,"emc_probe_clear: needs no args"); @@ -3049,8 +3049,8 @@ int emc_probe_clear(ClientData clientdata, return TCL_OK; } -int emc_probe_value(ClientData clientdata, - Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) +int emc_probe_value(ClientData /*clientdata*/, + Tcl_Interp * interp, int objc, Tcl_Obj * CONST * /*objv*/) { if (objc != 1) { setresult(interp,"emc_probe_value: needs no args"); @@ -3066,9 +3066,9 @@ int emc_probe_value(ClientData clientdata, return TCL_OK; } -int emc_probe_tripped(ClientData clientdata, +int emc_probe_tripped(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { if (objc != 1) { setresult(interp,"emc_probe_tripped: needs no args"); @@ -3084,7 +3084,7 @@ int emc_probe_tripped(ClientData clientdata, return TCL_OK; } -int emc_probe_move(ClientData clientdata, +int emc_probe_move(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { double x, y, z; @@ -3108,7 +3108,7 @@ int emc_probe_move(ClientData clientdata, return TCL_OK; } -static int emc_probed_pos(ClientData clientdata, +static int emc_probed_pos(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -3176,7 +3176,7 @@ static int emc_probed_pos(ClientData clientdata, // Pendant read routine from /dev/psaux, /dev/ttyS0, or /dev/ttyS1 // ********************************************************************* -static int emc_pendant(ClientData clientdata, +static int emc_pendant(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -3244,7 +3244,7 @@ static int emc_pendant(ClientData clientdata, // provide some of the extended Tcl builtins not available for various plats // "int", as in "int 3.9" which returns 3 -static int localint(ClientData clientdata, +static int localint(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { double val; @@ -3278,7 +3278,7 @@ static const char *one_head(int x0, int y0, int x1, int y1) } // "round", as in "round 3.9" which returns 4 -static int localround(ClientData clientdata, +static int localround(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, Tcl_Obj * CONST objv[]) { @@ -3310,9 +3310,9 @@ static int localround(ClientData clientdata, #include -static int multihead(ClientData clientdata, +static int multihead(ClientData /*clientdata*/, Tcl_Interp * interp, int objc, - Tcl_Obj * CONST objv[]) + Tcl_Obj * CONST * /*objv*/) { if(objc > 1) setresult(interp,"wrong # args: should be \"multihead\""); @@ -3348,7 +3348,7 @@ static int multihead(ClientData clientdata, return TCL_OK; } -static void sigQuit(int sig) +static void sigQuit(int /*sig*/) { thisQuit((ClientData) 0); } @@ -3372,7 +3372,7 @@ static void initMain() programStartLine = 0; } -int emc_init(ClientData cd, Tcl_Interp *interp, int argc, const char **argv) +int emc_init(ClientData /*cd*/, Tcl_Interp *interp, int argc, const char **argv) { bool quick = false; initMain(); diff --git a/src/emc/usr_intf/halui.cc b/src/emc/usr_intf/halui.cc index 8c7de75af17..f925427a207 100644 --- a/src/emc/usr_intf/halui.cc +++ b/src/emc/usr_intf/halui.cc @@ -267,7 +267,7 @@ static double receiveTimeout = 10.0; // how long to wait for Task to finish running our command static double doneTimeout = 60.; -static void quit(int sig) +static void quit(int /*sig*/) { done = 1; } diff --git a/src/emc/usr_intf/schedrmt.cc b/src/emc/usr_intf/schedrmt.cc index c3ba9e5fe9a..ebead0298b5 100644 --- a/src/emc/usr_intf/schedrmt.cc +++ b/src/emc/usr_intf/schedrmt.cc @@ -329,7 +329,7 @@ static int initSockets() return 0; } -static void sigQuit(int sig) +static void sigQuit(int /*sig*/) { thisQuit(); } @@ -452,7 +452,7 @@ static cmdResponseType setEnable(char *s, connectionRecType *context) else return rtStandardError; } -static cmdResponseType setDebug(char *s, connectionRecType *context) +static cmdResponseType setDebug(char *s, connectionRecType * /*context*/) { int level; @@ -462,7 +462,7 @@ static cmdResponseType setDebug(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setConfig(char *s, connectionRecType *context) +static cmdResponseType setConfig(char * /*s*/, connectionRecType * /*context*/) { return rtNoError; } @@ -477,7 +477,7 @@ static cmdResponseType setCommMode(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setCommProt(char *s, connectionRecType *context) +static cmdResponseType setCommProt(char * /*s*/, connectionRecType *context) { char *pVersion; @@ -487,7 +487,7 @@ static cmdResponseType setCommProt(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setQMode(char *s, connectionRecType *context) +static cmdResponseType setQMode(char *s, connectionRecType * /*context*/) { queueStatusType st; @@ -504,7 +504,7 @@ static cmdResponseType setQMode(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setAutoTagId(char *s, connectionRecType *context) +static cmdResponseType setAutoTagId(char *s, connectionRecType * /*context*/) { int tagId; @@ -514,7 +514,7 @@ static cmdResponseType setAutoTagId(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setPgmAdd(connectionRecType *context) +static cmdResponseType setPgmAdd(connectionRecType * /*context*/) { char *pch; int pri; @@ -562,7 +562,7 @@ static cmdResponseType setPgmAdd(connectionRecType *context) return rtNoError; } -static cmdResponseType setPriorityById(connectionRecType *context) +static cmdResponseType setPriorityById(connectionRecType * /*context*/) { int id; int pri; @@ -578,7 +578,7 @@ static cmdResponseType setPriorityById(connectionRecType *context) return rtNoError; } -static cmdResponseType setPriorityByIndex(connectionRecType *context) +static cmdResponseType setPriorityByIndex(connectionRecType * /*context*/) { int index; int pri; @@ -594,7 +594,7 @@ static cmdResponseType setPriorityByIndex(connectionRecType *context) return rtNoError; } -static cmdResponseType setDeleteById(char *s, connectionRecType *context) +static cmdResponseType setDeleteById(char *s, connectionRecType * /*context*/) { int id; @@ -603,7 +603,7 @@ static cmdResponseType setDeleteById(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setDeleteByIndex(char *s, connectionRecType *context) +static cmdResponseType setDeleteByIndex(char *s, connectionRecType * /*context*/) { int index; @@ -613,7 +613,7 @@ static cmdResponseType setDeleteByIndex(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType setPollRate(char *s, connectionRecType *context) +static cmdResponseType setPollRate(char *s, connectionRecType * /*context*/) { float rate; @@ -688,7 +688,7 @@ int commandSet(connectionRecType *context) return 0; } -static cmdResponseType getEcho(char *s, connectionRecType *context) +static cmdResponseType getEcho(char * /*s*/, connectionRecType *context) { const char *pEchoStr = "ECHO %s"; @@ -697,7 +697,7 @@ static cmdResponseType getEcho(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getVerbose(char *s, connectionRecType *context) +static cmdResponseType getVerbose(char * /*s*/, connectionRecType *context) { const char *pVerboseStr = "VERBOSE %s"; @@ -706,7 +706,7 @@ static cmdResponseType getVerbose(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getEnable(char *s, connectionRecType *context) +static cmdResponseType getEnable(char * /*s*/, connectionRecType *context) { const char *pEnableStr = "ENABLE %s"; @@ -717,7 +717,7 @@ static cmdResponseType getEnable(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getConfig(char *s, connectionRecType *context) +static cmdResponseType getConfig(char * /*s*/, connectionRecType *context) { const char *pConfigStr = "CONFIG"; @@ -725,7 +725,7 @@ static cmdResponseType getConfig(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getCommMode(char *s, connectionRecType *context) +static cmdResponseType getCommMode(char * /*s*/, connectionRecType *context) { const char *pCommModeStr = "COMM_MODE %s"; @@ -736,7 +736,7 @@ static cmdResponseType getCommMode(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getCommProt(char *s, connectionRecType *context) +static cmdResponseType getCommProt(char * /*s*/, connectionRecType *context) { const char *pCommProtStr = "COMM_PROT %s"; @@ -744,7 +744,7 @@ static cmdResponseType getCommProt(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getDebug(char *s, connectionRecType *context) +static cmdResponseType getDebug(char * /*s*/, connectionRecType *context) { const char *pUpdateStr = "DEBUG %d"; @@ -752,7 +752,7 @@ static cmdResponseType getDebug(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getIniFile(char *s, connectionRecType *context) +static cmdResponseType getIniFile(char * /*s*/, connectionRecType *context) { const char *pIniFile = "INIFILE %s"; @@ -760,7 +760,7 @@ static cmdResponseType getIniFile(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getPlat(char *s, connectionRecType *context) +static cmdResponseType getPlat(char * /*s*/, connectionRecType *context) { const char *pPlatStr = "PLAT %s"; @@ -768,7 +768,7 @@ static cmdResponseType getPlat(char *s, connectionRecType *context) return rtNoError; } -static cmdResponseType getQMode(char *s, connectionRecType *context) +static cmdResponseType getQMode(char * /*s*/, connectionRecType *context) { const char *pQMode = "QMODE %s"; @@ -1134,7 +1134,7 @@ int parseCommand(connectionRecType *context) return ret; } -void *checkQueue(void *arg) +void *checkQueue(void * /*arg*/) { while (1) { updateQueue(); @@ -1143,7 +1143,7 @@ void *checkQueue(void *arg) return 0; } -void *readClient(void *arg) +void *readClient(void * /*arg*/) { char str[1600]; char buf[1600]; diff --git a/src/emc/usr_intf/shcom.cc b/src/emc/usr_intf/shcom.cc index c89b521feb5..d659ce37d25 100644 --- a/src/emc/usr_intf/shcom.cc +++ b/src/emc/usr_intf/shcom.cc @@ -1181,7 +1181,7 @@ int sendJointSetBacklash(int joint, double backlash) return 0; } -int sendJointLoadComp(int joint, const char *file, int type) +int sendJointLoadComp(int /*joint*/, const char *file, int type) { EMC_JOINT_LOAD_COMP emc_joint_load_comp_msg; diff --git a/src/hal/classicladder/classicladder.c b/src/hal/classicladder/classicladder.c index cfe9dfa07c8..49c5b1c48c1 100644 --- a/src/hal/classicladder/classicladder.c +++ b/src/hal/classicladder/classicladder.c @@ -186,6 +186,7 @@ void process_options (int argc, char *argv[]) } //for EMC: do_exit static void do_exit(int unused) { + (void)unused; hal_exit(compId); printf(_("ERROR CLASSICLADDER- Error initializing classicladder user module.\n")); exit(0); diff --git a/src/hal/classicladder/classicladder_gtk.c b/src/hal/classicladder/classicladder_gtk.c index d257ce8edd4..a4673879356 100644 --- a/src/hal/classicladder/classicladder_gtk.c +++ b/src/hal/classicladder/classicladder_gtk.c @@ -127,6 +127,8 @@ void CairoDrawCurrentSectionOnDrawingArea( cairo_t *cr ) #if GTK_MAJOR_VERSION>=3 void draw_callback( GtkWidget *widget, cairo_t *cr, gpointer data) { + (void)widget; + (void)data; CairoDrawCurrentSectionOnDrawingArea( cr ); } #else @@ -292,6 +294,7 @@ void ChoiceOfTheCurrentRung( int NbrOfRungsAfterTopRung ) static gint VScrollBar_value_changed_event( GtkAdjustment * ScrollBar, void * not_used ) { + (void)not_used; int iCurrentLanguage = SectionArray[ InfosGene->CurrentSection ].Language; if ( iCurrentLanguage==SECTION_IN_LADDER ) { @@ -316,6 +319,7 @@ static gint VScrollBar_value_changed_event( GtkAdjustment * ScrollBar, void * no } static gint HScrollBar_value_changed_event( GtkAdjustment * ScrollBar, void * not_used ) { + (void)not_used; InfosGene->HScrollValue = (int)gtk_adjustment_get_value( ScrollBar ); return TRUE; } @@ -346,6 +350,7 @@ static void IncrementVScrollBar( int IncrementValue ) static gboolean mouse_scroll_event( GtkWidget *widget, GdkEventScroll *event ) { + (void)widget; int iCurrentLanguage = SectionArray[ InfosGene->CurrentSection ].Language; if ( iCurrentLanguage==SECTION_IN_LADDER ) { @@ -358,6 +363,7 @@ static gboolean mouse_scroll_event( GtkWidget *widget, GdkEventScroll *event ) } static gboolean button_press_event( GtkWidget *widget, GdkEventButton *event ) { + (void)widget; if (event->button == 1 /*Cairo && pixmap != NULL*/) { if (EditDatas.ModeEdit) @@ -391,6 +397,8 @@ static gboolean button_press_event( GtkWidget *widget, GdkEventButton *event ) } static gboolean motion_notify_event( GtkWidget *widget, GdkEventMotion *event, gpointer user_data ) { + (void)widget; + (void)user_data; //v0.9.20 if( SectionArray==NULL ) return TRUE; @@ -412,6 +420,7 @@ static gboolean motion_notify_event( GtkWidget *widget, GdkEventMotion *event, g } static gboolean button_release_event( GtkWidget *widget, GdkEventButton *event ) { + (void)widget; if (event->button == 1 /*Cairo && pixmap != NULL*/) { if (EditDatas.ModeEdit) @@ -471,6 +480,7 @@ void CheckDispSymbols_toggled( ) void StoreDirectorySelected( GtkFileChooser *selector, char cForLoadingProject) { char * TempDir; + (void)selector; TempDir = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(FileSelector)); @@ -522,6 +532,7 @@ void SaveAsLadder(void) void on_filechooserdialog_save_response(GtkDialog *dialog,gint response_id,gpointer user_data) { + (void)user_data; debug_printf(_("SAVE %s %d\n"),gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(FileSelector)),response_id); if(response_id==GTK_RESPONSE_ACCEPT || response_id==GTK_RESPONSE_OK) @@ -530,6 +541,7 @@ void on_filechooserdialog_save_response(GtkDialog *dialog,gint response_id,gpoi } void on_filechooserdialog_load_response(GtkDialog *dialog,gint response_id,gpointer user_data) { + (void)user_data; debug_printf(_("LOAD %s %d\n"),gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(FileSelector)),response_id); if(response_id==GTK_RESPONSE_ACCEPT || response_id==GTK_RESPONSE_OK) @@ -841,6 +853,7 @@ void ShowMessageBoxError( const char * text ) void DoFunctionOfConfirmationBox( GtkWidget *widget, void * (*function_to_do)(void *) ) { + (void)widget; gtk_widget_destroy(ConfirmDialog); (function_to_do)(NULL); } @@ -915,6 +928,9 @@ void ConfirmQuit( void ) } gint MainSectionWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; ConfirmQuit( ); // we do not want that the window be destroyed. return TRUE; @@ -1206,6 +1222,7 @@ void RedrawSignalDrawingArea( void ) static gint PeriodicUpdateDisplay(gpointer data) { + (void)data; if (InfosGene->LadderState==STATE_RUN) { #if defined( RT_SUPPORT ) || defined( __XENO__ ) @@ -1323,6 +1340,9 @@ void UpdateWindowTitleWithProjectName( void ) gint ErrorMessageDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_widget_hide( dialog ); // we do not want that the window be destroyed. return TRUE; diff --git a/src/hal/classicladder/drawing.c b/src/hal/classicladder/drawing.c index fe5e1007c98..9a6f65b363f 100644 --- a/src/hal/classicladder/drawing.c +++ b/src/hal/classicladder/drawing.c @@ -927,6 +927,7 @@ void DrawGhostZone( cairo_t * cr, int OffX, int AddPosiY ) void DrawPathLabelCommentHeader( cairo_t * cr, StrRung * Rung, int OffX, int PosiY, int BlockWidth, int HeaderHeight, char Background, char DrawingOption ) { + (void)DrawingOption; int HeaderBarHeight = HeaderHeight*70/100; int OffsetStartY = HeaderHeight*15/100; int Margin = BlockWidth/4; diff --git a/src/hal/classicladder/edit_copy.c b/src/hal/classicladder/edit_copy.c index 3640e406a26..4422b81ca8b 100644 --- a/src/hal/classicladder/edit_copy.c +++ b/src/hal/classicladder/edit_copy.c @@ -124,6 +124,8 @@ void CopyFunctionBlockPropertiesOrExpr( int NumTypeEle, int NumBlockSrc, int Num void CopyNowPartSelected( double x,double y ) { + (void)x; + (void)y; if ( EditDatas.GhostZonePosiX!=-1 && EditDatas.GhostZonePosiY!=-1 ) { int x,srcx,srcy; diff --git a/src/hal/classicladder/edit_gtk.c b/src/hal/classicladder/edit_gtk.c index f3789c73747..320cabd5a70 100644 --- a/src/hal/classicladder/edit_gtk.c +++ b/src/hal/classicladder/edit_gtk.c @@ -248,6 +248,9 @@ void ButtonCancelCurrentRung() gint EditorWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_widget_hide( EditWindow ); SetToggleMenuForEditorWindow( FALSE/*OpenedWin*/ ); // we do not want that the window be destroyed. diff --git a/src/hal/classicladder/editproperties_gtk.c b/src/hal/classicladder/editproperties_gtk.c index cdd9fd0b92d..9d8198bd039 100644 --- a/src/hal/classicladder/editproperties_gtk.c +++ b/src/hal/classicladder/editproperties_gtk.c @@ -158,6 +158,9 @@ char * GetProperty(int NumParam) gint PropertiesWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; // we do not want that the window be destroyed. return TRUE; } diff --git a/src/hal/classicladder/files.c b/src/hal/classicladder/files.c index 06af3c30b62..7ab06234140 100644 --- a/src/hal/classicladder/files.c +++ b/src/hal/classicladder/files.c @@ -53,7 +53,7 @@ #ifdef debug #define dbg_printf printf #else -static inline int dbg_printf(char *f, ...) {return 0;} +static inline int dbg_printf(char *f, ...) { (void)f; return 0;} #endif StrDatasForBase CorresDatasForBase[3] = { {BASE_MINS , TIME_BASE_MINS , "%.1fmn" , "Mins" } , diff --git a/src/hal/classicladder/manager_gtk.c b/src/hal/classicladder/manager_gtk.c index 5f5441c7781..60ad274525f 100644 --- a/src/hal/classicladder/manager_gtk.c +++ b/src/hal/classicladder/manager_gtk.c @@ -126,6 +126,8 @@ printf("select... before=%d scan=%d\n", SectionNbrSelected, NumSec ); void TreeViewCursorChangedSignal( GtkTreeView * treeview, gpointer user_data ) { + (void)treeview; + (void)user_data; if ( !BlockTreeViewCursorChangedSignal ) { printf("cursor-changed signal !\n"); @@ -286,6 +288,9 @@ printf("NumSectionCurrentlySelected=%d\n", SectionNbrSelected); } gint AddSectionWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; // we just want to hide the window gtk_widget_hide( AddSectionWindow ); // we do not want that the window be destroyed. @@ -353,6 +358,9 @@ void ButtonMoveDownClickSignal( ) gint ManagerWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; // Here, we must only toggle the menu check that will call itself the function below to close the window ... // gtk_widget_hide( ManagerWindow ); SetToogleMenuForSectionsManagerWindow( FALSE/*OpenedWin*/ ); diff --git a/src/hal/classicladder/print_gtk.c b/src/hal/classicladder/print_gtk.c index 1fd675e3ede..7a5773816fe 100644 --- a/src/hal/classicladder/print_gtk.c +++ b/src/hal/classicladder/print_gtk.c @@ -51,6 +51,7 @@ int SpaceBetweenRungsY = 25; static void begin_print(GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data) { + (void)user_data; NbrPagesToPrint = 0; int PageWidth = gtk_print_context_get_width(context); int PageHeight = gtk_print_context_get_height(context); @@ -91,6 +92,7 @@ printf( "print sizes: PrintLadderBlockWidth=%d, PrintLadderBlockHeight=%d, Print static void draw_page( GtkPrintOperation *operation, GtkPrintContext *context, int page_nr) { + (void)operation; cairo_t *cr; char Buffer[ 80 ]; // int the_width = RUNG_WIDTH*bl_width; @@ -135,6 +137,9 @@ static void draw_page( GtkPrintOperation *operation, GtkPrintContext *context, static void end_print(GtkPrintOperation *operation, GtkPrintContext *context, gpointer user_data) { + (void)operation; + (void)context; + (void)user_data; } void DoPrint( char DoPreview ) diff --git a/src/hal/classicladder/socket_modbus_master.c b/src/hal/classicladder/socket_modbus_master.c index ca3b50f1375..f509611139c 100644 --- a/src/hal/classicladder/socket_modbus_master.c +++ b/src/hal/classicladder/socket_modbus_master.c @@ -251,6 +251,7 @@ int SendSocketModbusMaster( char * SlaveAdr, int NumPort, char * Frame, int LgtF { int Status = -1; int LgtSend; + (void)NumPort; if ( VerifyTcpConnection( SlaveAdr ) ) { if( ModbusConfig.ModbusDebugLevel>=2 ) diff --git a/src/hal/classicladder/socket_server.c b/src/hal/classicladder/socket_server.c index 482e6e9f3da..1bf73b8a523 100644 --- a/src/hal/classicladder/socket_server.c +++ b/src/hal/classicladder/socket_server.c @@ -72,6 +72,7 @@ int SocketRunning = 0; /* TODO: Add support for Modbus/UDP. TCP sucks for a such serial protocol ! ;-) */ void InitSocketServer( int UseUdpMode, int PortNbr ) { + (void)UseUdpMode; int Error = 0; #ifdef __WIN32__ diff --git a/src/hal/classicladder/spy_vars_gtk.c b/src/hal/classicladder/spy_vars_gtk.c index f0aba79d83f..5035923367a 100644 --- a/src/hal/classicladder/spy_vars_gtk.c +++ b/src/hal/classicladder/spy_vars_gtk.c @@ -168,6 +168,9 @@ static gint OffsetBoolVar_activate_event(GtkWidget *widget, void * NumVarSpy) gint BoolVarsWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_widget_hide( SpyBoolVarsWindow ); SetToggleMenuForBoolVarsWindow( FALSE/*OpenedWin*/ ); // we do not want that the window be destroyed. @@ -252,6 +255,7 @@ gtk_entry_set_width_chars( GTK_ENTRY(offsetboolvar[ ColumnVar ]), 4 ); static gint OpenModifyVarWindow_clicked_event(GtkWidget *widget, int NumSpy) { + (void)widget; char BuffValue[ 30 ]; CurrentModifyVarType = VarSpy[NumSpy][0]; CurrentModifyVarOffset = VarSpy[NumSpy][1]; @@ -269,6 +273,9 @@ static gint OpenModifyVarWindow_clicked_event(GtkWidget *widget, int NumSpy) } gint ModifyVarWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_window_get_position( GTK_WINDOW(ModifyVarValueWindow), &SaveModifyVarPosX, &SaveModifyVarPosY ); gtk_widget_hide( ModifyVarValueWindow ); // we do not want that the window be destroyed. @@ -276,6 +283,9 @@ gint ModifyVarWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer } gint ApplyModifiedVar( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; int NewValue = atoi( gtk_entry_get_text( GTK_ENTRY(ModifyVariableValueEdit) ) ); WriteVar( CurrentModifyVarType, CurrentModifyVarOffset, NewValue ); gtk_window_get_position( GTK_WINDOW(ModifyVarValueWindow), &SaveModifyVarPosX, &SaveModifyVarPosY ); @@ -489,6 +499,9 @@ static gint EntryVarSpy_activate_event(GtkWidget *widget, int NumSpy) gint FreeVarsWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_widget_hide( SpyFreeVarsWindow ); SetToggleMenuForFreeVarsWindow( FALSE/*OpenedWin*/ ); // we do not want that the window be destroyed. diff --git a/src/hal/classicladder/symbols_gtk.c b/src/hal/classicladder/symbols_gtk.c index 5b449685047..7b3cb36baca 100644 --- a/src/hal/classicladder/symbols_gtk.c +++ b/src/hal/classicladder/symbols_gtk.c @@ -98,6 +98,7 @@ void DisplaySymbols( void ) // EMC: added a call to DisplaySymbols() so window updates right away void Callback_TextEdited(GtkCellRendererText *cell, gchar *path_string, gchar *new_text, gpointer data) { + (void)cell; int OffsetArray = -999; StrSymbol * pSymbol; @@ -173,6 +174,9 @@ DisplaySymbols(); gint SymbolsWindowDeleteEvent( GtkWidget * widget, GdkEvent * event, gpointer data ) { + (void)widget; + (void)event; + (void)data; gtk_widget_hide( SymbolsWindow ); SetToggleMenuForSymbolsWindow( FALSE/*OpenedWin*/ ); // we do not want that the window be destroyed. diff --git a/src/hal/components/panelui.c b/src/hal/components/panelui.c index 8cedc66f788..489164e8653 100644 --- a/src/hal/components/panelui.c +++ b/src/hal/components/panelui.c @@ -130,6 +130,7 @@ PyObject *pExit,*pValue; static sig_atomic_t stop; static void quit(int sig) { + (void)sig; if ( ignore_sig ) { return; } diff --git a/src/hal/components/sampler_usr.c b/src/hal/components/sampler_usr.c index 70ba6a0feca..8636a40568d 100644 --- a/src/hal/components/sampler_usr.c +++ b/src/hal/components/sampler_usr.c @@ -96,6 +96,7 @@ char comp_name[HAL_NAME_LEN+1]; /* name for this instance of sampler */ static sig_atomic_t stop; static void quit(int sig) { + (void)sig; if ( ignore_sig ) { return; } diff --git a/src/hal/components/streamer_usr.c b/src/hal/components/streamer_usr.c index 47e5162ba0b..d1d70ae64ef 100644 --- a/src/hal/components/streamer_usr.c +++ b/src/hal/components/streamer_usr.c @@ -91,6 +91,7 @@ char comp_name[HAL_NAME_LEN+1]; /* name for this instance of streamer */ static sig_atomic_t stop; static void quit(int sig) { + (void)sig; if ( ignore_sig ) { return; } diff --git a/src/hal/halmodule.cc b/src/hal/halmodule.cc index a1332895832..904fad9cda7 100644 --- a/src/hal/halmodule.cc +++ b/src/hal/halmodule.cc @@ -231,6 +231,7 @@ static PyObject *pyhal_error(int code) { } static int pyhal_init(PyObject *_self, PyObject *args, PyObject *kw) { + (void)kw; char *name; char *prefix = 0; halobject *self = (halobject *)_self; @@ -521,7 +522,7 @@ static PyObject *pyhal_get_pin(PyObject *_self, PyObject *o) { } -static PyObject *pyhal_get_pins(PyObject *_self, PyObject *o) { +static PyObject *pyhal_get_pins(PyObject *_self, PyObject * /*o*/) { char *name; halobject *self = (halobject *)_self; @@ -537,7 +538,7 @@ static PyObject *pyhal_get_pins(PyObject *_self, PyObject *o) { } -static PyObject *pyhal_ready(PyObject *_self, PyObject *o) { +static PyObject *pyhal_ready(PyObject *_self, PyObject * /*o*/) { // hal_ready did not exist in EMC 2.0.x, make it a no-op halobject *self = (halobject *)_self; EXCEPTION_IF_NOT_LIVE(NULL); @@ -546,7 +547,7 @@ static PyObject *pyhal_ready(PyObject *_self, PyObject *o) { Py_RETURN_NONE; } -static PyObject *pyhal_unready(PyObject *_self, PyObject *o) { +static PyObject *pyhal_unready(PyObject *_self, PyObject * /*o*/) { // hal_ready did not exist in EMC 2.0.x, make it a no-op halobject *self = (halobject *)_self; EXCEPTION_IF_NOT_LIVE(NULL); @@ -555,7 +556,7 @@ static PyObject *pyhal_unready(PyObject *_self, PyObject *o) { Py_RETURN_NONE; } -static PyObject *pyhal_exit(PyObject *_self, PyObject *o) { +static PyObject *pyhal_exit(PyObject *_self, PyObject * /*o*/) { halobject *self = (halobject *)_self; pyhal_exit_impl(self); Py_RETURN_NONE; @@ -750,7 +751,7 @@ static PyObject *pyhalpin_repr(PyObject *_self) { pin_type2name(self->type), pin_dir2name(self->dir.pindir)); } -static int pyhalpin_init(PyObject *_self, PyObject *, PyObject *) { +static int pyhalpin_init(PyObject * /*_self*/, PyObject *, PyObject *) { PyErr_Format(PyExc_RuntimeError, "Cannot be constructed directly"); return -1; @@ -882,7 +883,7 @@ static PyObject * pyhal_pin_new(halitem * pin, const char * name) { return (PyObject *) pypin; } -PyObject *pin_has_writer(PyObject *self, PyObject *args) { +PyObject *pin_has_writer(PyObject * /*self*/, PyObject *args) { char *name; if(!PyArg_ParseTuple(args, "s", &name)) return NULL; if(!hal_shmem_base) { @@ -906,7 +907,7 @@ PyObject *pin_has_writer(PyObject *self, PyObject *args) { } -PyObject *component_exists(PyObject *self, PyObject *args) { +PyObject *component_exists(PyObject * /*self*/, PyObject *args) { char *name; if(!PyArg_ParseTuple(args, "s", &name)) return NULL; if(!hal_shmem_base) { @@ -918,7 +919,7 @@ PyObject *component_exists(PyObject *self, PyObject *args) { return PyBool_FromLong(halpr_find_comp_by_name(name) != NULL); } -PyObject *component_is_ready(PyObject *self, PyObject *args) { +PyObject *component_is_ready(PyObject * /*self*/, PyObject *args) { char *name; if(!PyArg_ParseTuple(args, "s", &name)) return NULL; if(!hal_shmem_base) { @@ -932,7 +933,7 @@ PyObject *component_is_ready(PyObject *self, PyObject *args) { return PyBool_FromLong((thecomp) && (thecomp->ready != 0)); } -PyObject *new_sig(PyObject *self, PyObject *args) { +PyObject *new_sig(PyObject * /*self*/, PyObject *args) { char *name; int type,retval; if(!PyArg_ParseTuple(args, "si", &name,&type)) return NULL; @@ -968,7 +969,7 @@ PyObject *new_sig(PyObject *self, PyObject *args) { return PyBool_FromLong(retval != 0); } -PyObject *connect(PyObject *self, PyObject *args) { +PyObject *connect(PyObject * /*self*/, PyObject *args) { char *signame,*pinname; if(!PyArg_ParseTuple(args, "ss", &pinname,&signame)) return NULL; if(!hal_shmem_base) { @@ -980,7 +981,7 @@ PyObject *connect(PyObject *self, PyObject *args) { return PyBool_FromLong(hal_link(pinname, signame) != 0); } -PyObject *disconnect(PyObject *self, PyObject *args) { +PyObject *disconnect(PyObject * /*self*/, PyObject *args) { char *pinname; if(!PyArg_ParseTuple(args, "s", &pinname)) return NULL; if(!hal_shmem_base) { @@ -1082,7 +1083,7 @@ static int set_common(hal_type_t type, void *d_ptr, char *value) { return retval; } -PyObject *set_p(PyObject *self, PyObject *args) { +PyObject *set_p(PyObject * /*self*/, PyObject *args) { char *name,*value; int retval; hal_param_t *param; @@ -1146,7 +1147,7 @@ PyObject *set_p(PyObject *self, PyObject *args) { return PyBool_FromLong(retval != 0); } -PyObject *set_s(PyObject *self, PyObject *args) { +PyObject *set_s(PyObject * /*self*/, PyObject *args) { char *name,*value; int retval; hal_sig_t *sig; @@ -1185,7 +1186,7 @@ PyObject *set_s(PyObject *self, PyObject *args) { /*######################################*/ /* Get a Pin, Param or signal value */ -PyObject *get_value(PyObject *self, PyObject *args) { +PyObject *get_value(PyObject * /*self*/, PyObject *args) { char *name; hal_param_t *param; hal_pin_t *pin; @@ -1276,7 +1277,7 @@ PyObject *get_value(PyObject *self, PyObject *args) { /*######################################*/ /* Get a dict of pin info for all pins in system */ -PyObject *get_info_pins(PyObject *self, PyObject *args) { +PyObject *get_info_pins(PyObject * /*self*/, PyObject * /*args*/) { SHMFIELD(hal_pin_t) next; int type; char str_n[] = "NAME"; @@ -1365,7 +1366,7 @@ PyObject *get_info_pins(PyObject *self, PyObject *args) { /*######################################*/ /* Get a dict of signal info for all signals in system */ -PyObject *get_info_signals(PyObject *self, PyObject *args) { +PyObject *get_info_signals(PyObject * /*self*/, PyObject * /*args*/) { SHMFIELD(hal_sig_t) next; int type; char str_n[] = "NAME"; @@ -1450,7 +1451,7 @@ PyObject *get_info_signals(PyObject *self, PyObject *args) { /*######################################*/ /* Get a dict of parameter info for all parameters in system */ -PyObject *get_info_params(PyObject *self, PyObject *args) { +PyObject *get_info_params(PyObject * /*self*/, PyObject * /*args*/) { SHMFIELD(hal_param_t) next; int type; char str_n[] = "NAME"; @@ -1528,7 +1529,7 @@ struct shmobject { void *buf; }; -static int pyshm_init(PyObject *_self, PyObject *args, PyObject *kw) { +static int pyshm_init(PyObject *_self, PyObject *args, PyObject * /*kw*/) { shmobject *self = (shmobject *)_self; self->comp = 0; self->shm_id = -1; @@ -1558,7 +1559,7 @@ static void pyshm_delete(PyObject *_self) { Py_XDECREF(self->comp); } -static int shm_buffer_getbuffer(PyObject *obj, Py_buffer *view, int flags) { +static int shm_buffer_getbuffer(PyObject *obj, Py_buffer *view, int /*flags*/) { if (view == NULL) { PyErr_SetString(PyExc_ValueError, "NULL view in getbuffer"); return -1; @@ -1585,13 +1586,13 @@ static PyObject *shm_setsize(PyObject *_self, PyObject *args) { } -static PyObject *shm_getbuffer(PyObject *_self, PyObject *dummy) { +static PyObject *shm_getbuffer(PyObject *_self, PyObject * /*dummy*/) { shmobject *self = (shmobject *)_self; return (PyObject*)PyMemoryView_FromObject((PyObject*)self); } -static PyObject *set_msg_level(PyObject *_self, PyObject *args) { +static PyObject *set_msg_level(PyObject * /*_self*/, PyObject *args) { int level, res; if(!PyArg_ParseTuple(args, "i", &level)) return NULL; res = rtapi_set_msg_level(level); @@ -1599,7 +1600,7 @@ static PyObject *set_msg_level(PyObject *_self, PyObject *args) { Py_RETURN_NONE; } -static PyObject *get_msg_level(PyObject *_self, PyObject *args) { +static PyObject *get_msg_level(PyObject * /*_self*/, PyObject * /*args*/) { return PyLong_FromLong(rtapi_get_msg_level()); } @@ -1684,7 +1685,7 @@ struct streamobj { unsigned sampleno; }; -static int pystream_init(PyObject *_self, PyObject *args, PyObject *kw) { +static int pystream_init(PyObject *_self, PyObject *args, PyObject * /*kw*/) { int depth=0; char *typestring=NULL; @@ -1740,7 +1741,7 @@ static int pystream_init(PyObject *_self, PyObject *args, PyObject *kw) { return 0; } -PyObject *stream_read(PyObject *_self, PyObject *unused) { +PyObject *stream_read(PyObject *_self, PyObject * /*unused*/) { streamobj *self = (streamobj *)_self; int n = PyBytes_Size(self->pyelt); if(n <= 0) @@ -1821,7 +1822,7 @@ PyObject *stream_getter(PyObject *_self, void *vfp) { return to_python(result); } -PyObject *stream_element_types(PyObject *_self, void *unused) { +PyObject *stream_element_types(PyObject *_self, void * /*unused*/) { streamobj *self = reinterpret_cast(_self); if(!self->pyelt) { } diff --git a/src/hal/user_comps/gs2_vfd.c b/src/hal/user_comps/gs2_vfd.c index e1ac076f84d..ab98ffc242e 100644 --- a/src/hal/user_comps/gs2_vfd.c +++ b/src/hal/user_comps/gs2_vfd.c @@ -162,6 +162,7 @@ static char *ratestrings[] = {"110", "300", "600", "1200", "2400", "4800", "9600 static char *stopstrings[] = {"1", "2", NULL}; static void quit(int sig) { + (void)sig; done = 1; } @@ -402,6 +403,7 @@ int write_data(modbus_t *mb_ctx, slavedata_t *slavedata, haldata_t *haldata) { } void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [options]\n", argv[0]); printf( "This is a userspace HAL program, typically loaded using the halcmd \"loadusr\" command:\n" diff --git a/src/hal/user_comps/huanyang-vfd/hy_comm.c b/src/hal/user_comps/huanyang-vfd/hy_comm.c index 70f3fde7e7c..d4b5a8a7b18 100644 --- a/src/hal/user_comps/huanyang-vfd/hy_comm.c +++ b/src/hal/user_comps/huanyang-vfd/hy_comm.c @@ -185,6 +185,7 @@ static int check_crc16(hycomm_param_t *hc_param, uint8_t *msg, static unsigned int compute_response_length(hycomm_param_t *hc_param, uint8_t *query) { + (void)hc_param; int resp_length; switch (query[1]) diff --git a/src/hal/user_comps/huanyang-vfd/hy_vfd.c b/src/hal/user_comps/huanyang-vfd/hy_vfd.c index 9bfe12cf5b3..b64bc78b12d 100644 --- a/src/hal/user_comps/huanyang-vfd/hy_vfd.c +++ b/src/hal/user_comps/huanyang-vfd/hy_vfd.c @@ -143,6 +143,7 @@ typedef struct { static int done; static void quit_signal_handler(int sig) { + (void)sig; done = 1; } @@ -196,6 +197,7 @@ int match_string(char *string, char **matches) { } void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [options]\n", argv[0]); printf( "This is a userspace HAL program, typically loaded using the halcmd \"loadusr\" command:\n" diff --git a/src/hal/user_comps/hy_gt_vfd.c b/src/hal/user_comps/hy_gt_vfd.c index b8cc2f637ef..9a27eb994cf 100644 --- a/src/hal/user_comps/hy_gt_vfd.c +++ b/src/hal/user_comps/hy_gt_vfd.c @@ -117,6 +117,7 @@ static char *stopstrings[] = {"1", "2", NULL}; static void quit(int sig) { + (void)sig; done = 1; } @@ -140,6 +141,7 @@ int match_string(char *string, char **matches) { void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [ARGUMENTS]\n", argv[0]); printf( "\n" @@ -307,6 +309,7 @@ modbus_register_t *add_modbus_register_float(modbus_t *mb, int address, const ch modbus_register_t *add_modbus_register_u32(modbus_t *mb, int address, const char *pin_name, float multiplier) { int r; modbus_register_t *reg; + (void)multiplier; reg = &modbus_register[num_modbus_registers]; reg->type = REGISTER_U32; diff --git a/src/hal/user_comps/sendkeys.c b/src/hal/user_comps/sendkeys.c index 32ac7b29e2e..40fa302d200 100644 --- a/src/hal/user_comps/sendkeys.c +++ b/src/hal/user_comps/sendkeys.c @@ -66,6 +66,7 @@ void emit(int fd, int type, int code, int val) } static void exit_handler(int sig) { + (void)sig; printf("sendkeys: exiting\n"); exit(0); } diff --git a/src/hal/user_comps/shuttle.c b/src/hal/user_comps/shuttle.c index 0b85ed1b8fc..cfe528c0504 100644 --- a/src/hal/user_comps/shuttle.c +++ b/src/hal/user_comps/shuttle.c @@ -126,6 +126,7 @@ int num_devices = 0; static void exit_handler(int sig) { + (void)sig; printf("%s: exiting\n", modname); exit(0); } diff --git a/src/hal/user_comps/svd-ps_vfd.c b/src/hal/user_comps/svd-ps_vfd.c index 846c0d989f2..787132de331 100644 --- a/src/hal/user_comps/svd-ps_vfd.c +++ b/src/hal/user_comps/svd-ps_vfd.c @@ -109,6 +109,7 @@ static char *stopstrings[] = {"1", "2", NULL}; static void quit(int sig) { + (void)sig; done = 1; } @@ -132,6 +133,7 @@ int match_string(char *string, char **matches) { void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [ARGUMENTS]\n", argv[0]); printf( "\n" diff --git a/src/hal/user_comps/thermistor.comp b/src/hal/user_comps/thermistor.comp index 8f3bb59979e..8bf7f6b592d 100644 --- a/src/hal/user_comps/thermistor.comp +++ b/src/hal/user_comps/thermistor.comp @@ -67,10 +67,13 @@ pin out float resistance "Computed resistance of the thermistor."; int should_exit = 0; void sigterm_handler(int signo) { + (void)signo; should_exit = 1; } static void userinit(int argc, char **argv) { + (void)argc; + (void)argv; signal(SIGTERM, sigterm_handler); } diff --git a/src/hal/user_comps/vfdb_vfd/vfdb_vfd.c b/src/hal/user_comps/vfdb_vfd/vfdb_vfd.c index 7d222c9b900..1b3d6c0abbf 100644 --- a/src/hal/user_comps/vfdb_vfd/vfdb_vfd.c +++ b/src/hal/user_comps/vfdb_vfd/vfdb_vfd.c @@ -240,17 +240,20 @@ void windup(param_pointer p) static void toggle_modbus_debug(int sig) { + (void)sig; param.modbus_debug = !param.modbus_debug; modbus_set_debug(param.ctx, param.modbus_debug); } static void toggle_debug(int sig) { + (void)sig; param.debug = !param.debug; } static void quit(int sig) { + (void)sig; if (param.debug) fprintf(stderr,"quit(connection_state=%d)\n",connection_state); @@ -345,6 +348,7 @@ int read_ini(param_pointer p) } void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [options]\n", argv[0]); printf("This is a userspace HAL program, typically loaded using the halcmd \"loadusr\" command:\n" " loadusr vfdb_vfd [options]\n" diff --git a/src/hal/user_comps/vfs11_vfd/vfs11_vfd.c b/src/hal/user_comps/vfs11_vfd/vfs11_vfd.c index 344dd6054cf..8f291d59c80 100644 --- a/src/hal/user_comps/vfs11_vfd/vfs11_vfd.c +++ b/src/hal/user_comps/vfs11_vfd/vfs11_vfd.c @@ -360,17 +360,20 @@ void windup(param_pointer p) static void toggle_modbus_debug(int sig) { + (void)sig; param.modbus_debug = !param.modbus_debug; modbus_set_debug(param.ctx, param.modbus_debug); } static void toggle_debug(int sig) { + (void)sig; param.debug = !param.debug; } static void quit(int sig) { + (void)sig; if (param.debug) fprintf(stderr,"quit(connection_state=%d)\n",connection_state); @@ -506,6 +509,7 @@ int read_ini(param_pointer p) } void usage(int argc, char **argv) { + (void)argc; printf("Usage: %s [options]\n", argv[0]); printf("This is a userspace HAL program, typically loaded using the halcmd \"loadusr\" command:\n" " loadusr vfs11_vfd [options]\n" diff --git a/src/hal/user_comps/xhc-hb04.cc b/src/hal/user_comps/xhc-hb04.cc index 69c95e041e6..70465de8434 100644 --- a/src/hal/user_comps/xhc-hb04.cc +++ b/src/hal/user_comps/xhc-hb04.cc @@ -509,6 +509,7 @@ void setup_asynch_transfer(libusb_device_handle *dev_handle) static void quit(int sig) { + (void)sig; do_exit = 1; } diff --git a/src/hal/user_comps/xhc-whb04b-6/hal.cc b/src/hal/user_comps/xhc-whb04b-6/hal.cc index 01ac249685e..a4d7aa466b6 100644 --- a/src/hal/user_comps/xhc-whb04b-6/hal.cc +++ b/src/hal/user_comps/xhc-whb04b-6/hal.cc @@ -221,7 +221,7 @@ Hal::~Hal() delete memory; } // ---------------------------------------------------------------------- -int Hal::newSimulatedHalPin(char* pin_name, void** ptr, int s) +int Hal::newSimulatedHalPin(char* /*pin_name*/, void** ptr, int s) { *ptr = calloc(s, 1); assert(*ptr != nullptr); @@ -646,7 +646,7 @@ void Hal::enableVerbose(bool enable) } } // ---------------------------------------------------------------------- -void Hal::setNoAxisActive(bool enabled) +void Hal::setNoAxisActive(bool /*enabled*/) { *mHalCout << "hal OFF no axis active" << endl; } diff --git a/src/hal/user_comps/xhc-whb04b-6/pendant.cc b/src/hal/user_comps/xhc-whb04b-6/pendant.cc index cb27db8a5a8..93b77fdcd49 100644 --- a/src/hal/user_comps/xhc-whb04b-6/pendant.cc +++ b/src/hal/user_comps/xhc-whb04b-6/pendant.cc @@ -1557,17 +1557,17 @@ void Pendant::dispatchAxisEventToHal(const KeyCode& axis, bool isActive) } } // ---------------------------------------------------------------------- -void Pendant::setLeadModeSpindle(bool enable) +void Pendant::setLeadModeSpindle(bool /*enable*/) { mIsLeadModeSpindle = true; } // ---------------------------------------------------------------------- -void Pendant::setLeadModeFeed(bool enable) +void Pendant::setLeadModeFeed(bool /*enable*/) { mIsLeadModeFeed = true; } // ---------------------------------------------------------------------- -void Pendant::setStepMode_5_10(bool enable) +void Pendant::setStepMode_5_10(bool /*enable*/) { mIsStepMode_5_10 = true; } @@ -1616,7 +1616,7 @@ bool Display::onButtonPressedEvent(const MetaButtonCodes& metaButton) return false; } // ---------------------------------------------------------------------- -bool Display::onButtonReleasedEvent(const MetaButtonCodes& metaButton) +bool Display::onButtonReleasedEvent(const MetaButtonCodes& /*metaButton*/) { return false; } @@ -1635,11 +1635,11 @@ void Display::onAxisActiveEvent(const KeyCode& axis) } } // ---------------------------------------------------------------------- -void Display::onAxisInactiveEvent(const KeyCode& axis) +void Display::onAxisInactiveEvent(const KeyCode& /*axis*/) { } // ---------------------------------------------------------------------- -void Display::onFeedActiveEvent(const KeyCode& feed) +void Display::onFeedActiveEvent(const KeyCode& /*feed*/) { if (mCurrentButtonsState.feedButton().stepMode() == HandwheelStepmodes::Mode::STEP) { @@ -1658,11 +1658,11 @@ void Display::onFeedActiveEvent(const KeyCode& feed) } } // ---------------------------------------------------------------------- -void Display::onFeedInactiveEvent(const KeyCode& feed) +void Display::onFeedInactiveEvent(const KeyCode& /*feed*/) { } // ---------------------------------------------------------------------- -bool Display::onJogDialEvent(const HandWheelCounters& counters, int8_t delta) +bool Display::onJogDialEvent(const HandWheelCounters& /*counters*/, int8_t /*delta*/) { return false; } diff --git a/src/hal/utils/halcmd.c b/src/hal/utils/halcmd.c index 67ae6f80a66..1bdf1760a09 100644 --- a/src/hal/utils/halcmd.c +++ b/src/hal/utils/halcmd.c @@ -274,6 +274,7 @@ int hal_systemv(const char *const argv[]) { /* signal handler */ static void quit(int sig) { + (void)sig; if ( hal_flag ) { /* this process might have the hal mutex, so just set the 'done' flag and return, exit after mutex work finishes */ diff --git a/src/hal/utils/halcmd_completion.c b/src/hal/utils/halcmd_completion.c index d834af6e846..410d06ba6a1 100644 --- a/src/hal/utils/halcmd_completion.c +++ b/src/hal/utils/halcmd_completion.c @@ -561,6 +561,7 @@ static char *nextword(char *s) { } char **halcmd_completer(const char *text, int start, int end, hal_completer_func func, char *buffer) { + (void)end; int i; char **result = NULL, *n; diff --git a/src/hal/utils/halcmd_main.c b/src/hal/utils/halcmd_main.c index 922e18ada20..4f69482e403 100644 --- a/src/hal/utils/halcmd_main.c +++ b/src/hal/utils/halcmd_main.c @@ -397,6 +397,7 @@ static char **completion_callback(const char *text, hal_generator_func cb) { /* completion text starts with "halcmd", so remove that from the string */ static int propose_completion(char *all, char *fragment, int start) { + (void)start; int sp=0, len=strlen(all), i=0; for(; i 0: print(" char buf[HAL_NAME_LEN + 1];", file=f) print(" int r = 0;", file=f) diff --git a/src/hal/utils/halrmt.c b/src/hal/utils/halrmt.c index 73f0f18e9e1..9840bee81ad 100644 --- a/src/hal/utils/halrmt.c +++ b/src/hal/utils/halrmt.c @@ -429,6 +429,7 @@ const char *halCommands[] = { /* signal handler */ static void quit(int sig) { + (void)sig; if ( hal_flag ) { /* this process might have the hal mutex, so just set the 'done' flag and return, exit after mutex work finishes */ @@ -909,6 +910,7 @@ static int doNewsig(char *name, char *type, connectionRecType *context) } static int set_common(hal_type_t type, void *d_ptr, char *value, connectionRecType *context) { + (void)context; // This function assumes that the mutex is held int retval = 0; double fval; @@ -2488,6 +2490,7 @@ static halCommandType lookupHalCommand(char *s) static cmdResponseType getEcho(char *s, connectionRecType *context) { + (void)s; const char *pEchoStr = "ECHO %s"; if (context->echo == 1) snprintf(context->outBuf, sizeof(context->outBuf), pEchoStr, "ON"); @@ -2497,6 +2500,7 @@ static cmdResponseType getEcho(char *s, connectionRecType *context) static cmdResponseType getVerbose(char *s, connectionRecType *context) { + (void)s; const char *pVerboseStr = "VERBOSE %s"; if (context->verbose == 1) snprintf(context->outBuf, sizeof(context->outBuf), pVerboseStr, "ON"); @@ -2506,6 +2510,7 @@ static cmdResponseType getVerbose(char *s, connectionRecType *context) static cmdResponseType getEnable(char *s, connectionRecType *context) { + (void)s; const char *pEnableStr = "ENABLE %s"; if (context->cliSock == enabledConn) snprintf(context->outBuf, sizeof(context->outBuf), pEnableStr, "ON"); @@ -2515,6 +2520,7 @@ static cmdResponseType getEnable(char *s, connectionRecType *context) static cmdResponseType getConfig(char *s, connectionRecType *context) { + (void)s; const char *pConfigStr = "CONFIG"; rtapi_strxcpy(context->outBuf, pConfigStr); @@ -2523,6 +2529,7 @@ static cmdResponseType getConfig(char *s, connectionRecType *context) static cmdResponseType getCommMode(char *s, connectionRecType *context) { + (void)s; const char *pCommModeStr = "COMM_MODE %s"; switch (context->commMode) { @@ -2534,6 +2541,7 @@ static cmdResponseType getCommMode(char *s, connectionRecType *context) static cmdResponseType getCommProt(char *s, connectionRecType *context) { + (void)s; const char *pCommProtStr = "COMM_PROT %s"; snprintf(context->outBuf, sizeof(context->outBuf), pCommProtStr, context->version); @@ -2827,6 +2835,8 @@ static cmdResponseType setEnable(char *s, connectionRecType *context) static cmdResponseType setConfig(char *s, connectionRecType *context) { + (void)s; + (void)context; return rtNoError; } @@ -2842,6 +2852,7 @@ static cmdResponseType setCommMode(char *s, connectionRecType *context) static cmdResponseType setCommProt(char *s, connectionRecType *context) { + (void)s; char *pVersion; pVersion = strtok(NULL, delims); @@ -2881,6 +2892,7 @@ static cmdResponseType setUnload(char *s, connectionRecType *context) static cmdResponseType setLoadUsr(char *s, connectionRecType *context) { + (void)context; char *argv[MAX_TOK+1] = {0}; argv[0] = s; @@ -3372,6 +3384,7 @@ int parseCommand(connectionRecType *context) void *readClient(void *arg) { + (void)arg; char str[1600]; char buf[1600]; unsigned int i, j; diff --git a/src/hal/utils/halsh.c b/src/hal/utils/halsh.c index e90cbec476e..aa53e5d5a3b 100644 --- a/src/hal/utils/halsh.c +++ b/src/hal/utils/halsh.c @@ -52,10 +52,12 @@ static int init() { return result; } static void halExit(ClientData d) { + (void)d; shutdown(); } static int halCmd(ClientData cd, Tcl_Interp *interp, int argc, const char **argv) { + (void)cd; int result; Tcl_ResetResult(interp); diff --git a/src/hal/utils/meter.c b/src/hal/utils/meter.c index 264ac58ab69..9dd83d284f8 100644 --- a/src/hal/utils/meter.c +++ b/src/hal/utils/meter.c @@ -384,6 +384,7 @@ probe_t *probe_new(char *probe_name) void popup_probe_window(GtkWidget * widget, gpointer data) { + (void)widget; probe_t *probe; hal_pin_t *pin; hal_sig_t *sig; @@ -478,6 +479,7 @@ void popup_probe_window(GtkWidget * widget, gpointer data) static void quit(int sig) { + (void)sig; gtk_main_quit(); } @@ -660,6 +662,7 @@ static void create_probe_window(probe_t * probe) static void apply_selection(GtkWidget * widget, gpointer data) { + (void)widget; probe_t *probe; /* get a pointer to the probe data structure */ @@ -691,6 +694,8 @@ static void apply_selection(GtkWidget * widget, gpointer data) static void page_switched(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data) { + (void)notebook; + (void)page; probe_t *probe; probe = (probe_t *) user_data; probe->listnum=page_num; diff --git a/src/hal/utils/scope.c b/src/hal/utils/scope.c index ad7256177ca..7c5508b709b 100644 --- a/src/hal/utils/scope.c +++ b/src/hal/utils/scope.c @@ -236,6 +236,7 @@ int main(int argc, gchar * argv[]) static int heartbeat(gpointer data) { + (void)data; refresh_state_info(); /* check watchdog */ if (ctrl_shm->watchdog < 10) { @@ -752,15 +753,20 @@ static void exit_from_hal(void) static void main_window_closed(GtkWidget * widget, gpointer * gdata) { + (void)widget; + (void)gdata; quit(0); } static void set_focus(GtkWindow *window, GtkWidget *widget, gpointer *data) { + (void)widget; + (void)data; gtk_window_set_urgency_hint(window, FALSE); } static void quit(int sig) { + (void)sig; gtk_main_quit(); } @@ -792,6 +798,7 @@ int set_run_mode(int mode) static void rm_normal_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; @@ -804,6 +811,7 @@ static void rm_normal_button_clicked(GtkWidget * widget, gpointer * gdata) static void rm_single_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; @@ -816,6 +824,7 @@ static void rm_single_button_clicked(GtkWidget * widget, gpointer * gdata) static void rm_roll_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; @@ -828,6 +837,7 @@ static void rm_roll_button_clicked(GtkWidget * widget, gpointer * gdata) static void rm_stop_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; diff --git a/src/hal/utils/scope_disp.c b/src/hal/utils/scope_disp.c index c93cb961941..b3b1cd6ca80 100644 --- a/src/hal/utils/scope_disp.c +++ b/src/hal/utils/scope_disp.c @@ -469,6 +469,9 @@ static int select_trace(int x, int y) { } static int handle_release(GtkWidget *widget, GdkEventButton *event, gpointer data) { + (void)widget; + (void)event; + (void)data; return 1; } @@ -499,6 +502,8 @@ static void change_zoom(int dir, int x) { } static int handle_click(GtkWidget *widget, GdkEventButton *event, gpointer data) { + (void)widget; + (void)data; scope_vert_t *vert = &(ctrl_usr->vert); scope_disp_t *disp = &(ctrl_usr->disp); motion_y = event->y; @@ -535,6 +540,8 @@ static int get_cursor_info(double *t, double *p, double *v) { } static int handle_scroll(GtkWidget *widget, GdkEventScroll *event, gpointer data) { + (void)widget; + (void)data; change_zoom(event->direction ? -1 : 1, event->x); return TRUE; } @@ -584,6 +591,8 @@ static void left_drag(int dy, int y, GdkModifierType state) { } static int handle_motion(GtkWidget *widget, GdkEventButton *event, gpointer data) { + (void)widget; + (void)data; scope_disp_t *disp = &(ctrl_usr->disp); GdkModifierType mod; int x, y; @@ -948,6 +957,8 @@ void conflict_avoid(int *y, int h) { static void update_drawing_size(GtkWidget *widget, GdkEventConfigure *event, gpointer data) { + (void)event; + (void)data; scope_disp_t *disp; disp = &(ctrl_usr->disp); diff --git a/src/hal/utils/scope_files.c b/src/hal/utils/scope_files.c index b898e57d97d..c1e176e5165 100644 --- a/src/hal/utils/scope_files.c +++ b/src/hal/utils/scope_files.c @@ -434,6 +434,7 @@ static int parse_command(char *in) static char *dummy_cmd(void * arg) { + (void)arg; return "command not implemented"; } @@ -527,6 +528,7 @@ static char *chan_cmd(void * arg) static char *choff_cmd(void * arg) { + (void)arg; int chan_num; if ( deferred_channel != 0 ) { diff --git a/src/hal/utils/scope_horiz.c b/src/hal/utils/scope_horiz.c index 7e3e06da823..ce1552c305c 100644 --- a/src/hal/utils/scope_horiz.c +++ b/src/hal/utils/scope_horiz.c @@ -825,6 +825,8 @@ static void log_popup(GtkWindow *parent) static void acquire_popup(GtkWidget * widget, gpointer gdata) { + (void)widget; + (void)gdata; prepare_scope_restart(); /** This function doesn't directly cause the acquire menu to @@ -934,6 +936,8 @@ static int activate_sample_thread(void) static void mult_changed(GtkAdjustment * adj, gpointer gdata) { + (void)adj; + (void)gdata; scope_horiz_t *horiz; int value; @@ -949,11 +953,13 @@ static void mult_changed(GtkAdjustment * adj, gpointer gdata) static void zoom_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_horiz_zoom(gtk_adjustment_get_value(adj)); } static void pos_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_horiz_pos(gtk_adjustment_get_value(adj) / 1000.0); } @@ -1231,11 +1237,13 @@ static void format_freq_value(char *buf, int buflen, double freqval) } static gint horiz_press(GtkWidget *widget, GdkEventButton *event) { + (void)widget; ctrl_usr->horiz.x0 = event->x; return TRUE; } static gint horiz_motion(GtkWidget *widget, GdkEventMotion *event) { + (void)widget; scope_horiz_t *horiz = &(ctrl_usr->horiz); int motion; @@ -1290,12 +1298,16 @@ static gint horiz_motion(GtkWidget *widget, GdkEventMotion *event) { } static gint horiz_release(GtkWidget *widget, GdkEventButton *event) { + (void)widget; + (void)event; return TRUE; } static gboolean configure_window(GtkWidget *widget, GdkEventConfigure *event, gpointer data) { + (void)event; + (void)data; scope_horiz_t *horiz; horiz = &(ctrl_usr->horiz); diff --git a/src/hal/utils/scope_trig.c b/src/hal/utils/scope_trig.c index 56c32a75450..a3134b05c87 100644 --- a/src/hal/utils/scope_trig.c +++ b/src/hal/utils/scope_trig.c @@ -421,6 +421,7 @@ int set_trigger_level(double setting) static void level_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_trigger_level(gtk_adjustment_get_value(adj) / TRIG_LEVEL_RESOLUTION); } @@ -451,6 +452,7 @@ int set_trigger_pos(double setting) static void pos_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_trigger_pos(gtk_adjustment_get_value(adj) / TRIG_POS_RESOLUTION); } @@ -469,6 +471,8 @@ int set_trigger_polarity(int setting) static void edge_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)widget; + (void)gdata; if (ctrl_shm->trig_edge == 0) { /* was falling edge, make rising */ set_trigger_polarity(1); @@ -498,6 +502,7 @@ int set_trigger_mode(int mode) static void normal_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; @@ -507,6 +512,7 @@ static void normal_button_clicked(GtkWidget * widget, gpointer * gdata) static void auto_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)gdata; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)) != TRUE) { /* not pressed, ignore it */ return; @@ -516,10 +522,14 @@ static void auto_button_clicked(GtkWidget * widget, gpointer * gdata) static void force_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)widget; + (void)gdata; ctrl_shm->force_trig = 1; } static void source_button_clicked(GtkWidget * widget, gpointer * gdata) { + (void)widget; + (void)gdata; dialog_select_trigger_source(); } diff --git a/src/hal/utils/scope_vert.c b/src/hal/utils/scope_vert.c index fbdb1ac3d76..7aa52bfa119 100644 --- a/src/hal/utils/scope_vert.c +++ b/src/hal/utils/scope_vert.c @@ -644,16 +644,20 @@ static void init_vert_info_window(void) static void scale_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_vert_scale(gtk_adjustment_get_value(adj)); } static void pos_changed(GtkAdjustment * adj, gpointer gdata) { + (void)gdata; set_vert_pos(gtk_adjustment_get_value(adj) / VERT_POS_RESOLUTION); } static void offset_button(GtkWidget * widget, gpointer gdata) { + (void)widget; + (void)gdata; scope_vert_t *vert; scope_chan_t *chan; int chan_num; @@ -757,6 +761,7 @@ static gboolean dialog_set_offset(int chan_num) static void offset_changed(GtkEditable * editable, struct offset_data *data) { + (void)editable; const char *text; /* maybe user hit "ac coupled" button" */ @@ -775,6 +780,7 @@ static void offset_changed(GtkEditable * editable, struct offset_data *data) */ static void offset_activated(GtkEntry *entry, GtkWidget *dialog) { + (void)entry; gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK); } @@ -859,6 +865,8 @@ static void chan_sel_button(GtkWidget * widget, gpointer gdata) static void change_source_button(GtkWidget * widget, gpointer gdata) { + (void)widget; + (void)gdata; int chan_num; chan_num = ctrl_usr->vert.selected; @@ -877,6 +885,9 @@ static void change_source_button(GtkWidget * widget, gpointer gdata) static void change_page(GtkNotebook *notebook, GtkWidget *page, guint page_num, gpointer user_data) { + (void)notebook; + (void)page; + (void)user_data; scope_vert_t *vert; vert = &(ctrl_usr->vert); @@ -1057,6 +1068,9 @@ static void selection_changed(GtkTreeSelection *selection, char *name) static void selection_made(GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *col, GtkWidget *dialog) { + (void)treeview; + (void)path; + (void)col; gtk_dialog_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); } diff --git a/src/libnml/buffer/phantom.cc b/src/libnml/buffer/phantom.cc index 35d788662a9..790bb0b0a7f 100644 --- a/src/libnml/buffer/phantom.cc +++ b/src/libnml/buffer/phantom.cc @@ -23,7 +23,7 @@ PHANTOMMEM::~PHANTOMMEM() { } -CMS_STATUS PHANTOMMEM::main_access(void *_local, int *serial_number) +CMS_STATUS PHANTOMMEM::main_access(void * /*_local*/, int * /*serial_number*/) { switch (internal_access_type) { case CMS_READ_ACCESS: diff --git a/src/libnml/buffer/shmem.cc b/src/libnml/buffer/shmem.cc index 1eeba1ccdb8..0414e1a8317 100644 --- a/src/libnml/buffer/shmem.cc +++ b/src/libnml/buffer/shmem.cc @@ -54,7 +54,7 @@ static inline bool not_zero(double x) /* SHMEM Member Functions. */ /* Constructor for hard coded tests. */ -SHMEM::SHMEM(const char *n, long s, int nt, key_t k, int m):CMS(s) +SHMEM::SHMEM(const char * /*n*/, long s, int /*nt*/, key_t k, int m):CMS(s) { /* Set pointers to null so only properly opened pointers are closed. */ shm = NULL; diff --git a/src/libnml/cms/cms.cc b/src/libnml/cms/cms.cc index 6b388f53b9b..48c98d1b3a9 100644 --- a/src/libnml/cms/cms.cc +++ b/src/libnml/cms/cms.cc @@ -891,7 +891,7 @@ CMS::~CMS() /* This function should never be called. It exists so that classes which */ /* overload read, write etc don't have to bother creating it. */ -CMS_STATUS CMS::main_access(void *_local, int *serial_number) +CMS_STATUS CMS::main_access(void *_local, int * /*serial_number*/) { rcs_print_error("CMS::main_access called by %s for %s.\n", ProcessName, BufferName); @@ -1054,7 +1054,7 @@ CMS_STATUS CMS::write_if_read(void *user_data, int *serial_number) // For protocols that provide No security, tell the // application the login was successful. // This method needs to be overloaded to have any security. -int CMS::login(const char *name, const char *passwd) +int CMS::login(const char * /*name*/, const char * /*passwd*/) { return 1; } @@ -1608,7 +1608,7 @@ int CMS::set_subdivision(int _subdiv) } // This constructor declared private to prevent copying. -CMS::CMS(CMS & cms) +CMS::CMS(CMS & /*cms*/) { } diff --git a/src/libnml/cms/cms_srv.cc b/src/libnml/cms/cms_srv.cc index 9e1bbd3325e..490074b0b7d 100644 --- a/src/libnml/cms/cms_srv.cc +++ b/src/libnml/cms/cms_srv.cc @@ -119,31 +119,31 @@ CMS_SERVER_LOCAL_PORT::~CMS_SERVER_LOCAL_PORT() } /* local_port function for reads */ -REMOTE_READ_REPLY *CMS_SERVER_LOCAL_PORT::reader(REMOTE_READ_REQUEST * _req) +REMOTE_READ_REPLY *CMS_SERVER_LOCAL_PORT::reader(REMOTE_READ_REQUEST * /*_req*/) { return (NULL); } REMOTE_READ_REPLY *CMS_SERVER_LOCAL_PORT::blocking_read(REMOTE_READ_REQUEST * - _req) + /*_req*/) { return (NULL); } /* local_port function for writes */ -REMOTE_WRITE_REPLY *CMS_SERVER_LOCAL_PORT::writer(REMOTE_WRITE_REQUEST * _req) +REMOTE_WRITE_REPLY *CMS_SERVER_LOCAL_PORT::writer(REMOTE_WRITE_REQUEST * /*_req*/) { return (NULL); } REMOTE_SET_DIAG_INFO_REPLY *CMS_SERVER_LOCAL_PORT:: -set_diag_info(REMOTE_SET_DIAG_INFO_REQUEST * _req) +set_diag_info(REMOTE_SET_DIAG_INFO_REQUEST * /*_req*/) { return (NULL); } REMOTE_GET_DIAG_INFO_REPLY *CMS_SERVER_LOCAL_PORT:: -get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * _req) +get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * /*_req*/) { get_diag_info_reply.cdi = cms->get_diagnostics_info(); get_diag_info_reply.status = cms->status; @@ -151,7 +151,7 @@ get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * _req) } REMOTE_GET_MSG_COUNT_REPLY *CMS_SERVER_LOCAL_PORT:: -get_msg_count(REMOTE_GET_DIAG_INFO_REQUEST * _req) +get_msg_count(REMOTE_GET_DIAG_INFO_REQUEST * /*_req*/) { return (NULL); } diff --git a/src/libnml/cms/cmsdiag.cc b/src/libnml/cms/cmsdiag.cc index 9a4cd6f8e48..f93005bff3b 100644 --- a/src/libnml/cms/cmsdiag.cc +++ b/src/libnml/cms/cmsdiag.cc @@ -227,7 +227,7 @@ void CMS::calculate_and_store_diag_info(PHYSMEM_HANDLE * _handle, } void CMS::internal_retrieve_diag_info(PHYSMEM_HANDLE * _handle, - void *_user_data) + void * /*_user_data*/) { if (NULL == _handle || !enable_diagnostics) { return; diff --git a/src/libnml/cms/tcp_srv.cc b/src/libnml/cms/tcp_srv.cc index 28906ca0414..dac0b1f8457 100644 --- a/src/libnml/cms/tcp_srv.cc +++ b/src/libnml/cms/tcp_srv.cc @@ -732,7 +732,7 @@ void CMS_SERVER_REMOTE_TCP_PORT::handle_request(CLIENT_TCP_PORT * void CMS_SERVER_REMOTE_TCP_PORT::switch_function(CLIENT_TCP_PORT * _client_tcp_port, CMS_SERVER * server, - long request_type, long buffer_number, long received_serial_number) + long request_type, long buffer_number, long /*received_serial_number*/) { int total_subdivisions = 1; CLIENT_TCP_PORT *client_port_to_check = NULL; diff --git a/src/libnml/linklist/linklist.cc b/src/libnml/linklist/linklist.cc index 08930d8bffc..8d2397e619b 100644 --- a/src/libnml/linklist/linklist.cc +++ b/src/libnml/linklist/linklist.cc @@ -777,6 +777,6 @@ int LinkedList::get_current_id() } // Constructor defined private to prevent copying. -LinkedList::LinkedList(LinkedList & list) +LinkedList::LinkedList(LinkedList & /*list*/) { } diff --git a/src/libnml/nml/nml.cc b/src/libnml/nml/nml.cc index b14b268d1bf..af9c592976c 100644 --- a/src/libnml/nml/nml.cc +++ b/src/libnml/nml/nml.cc @@ -2398,7 +2398,7 @@ NMLTYPE NML::peek_subdivision(int subdiv) } // This constructor declared private to prevent copying. -NML::NML(NML & nml) +NML::NML(NML & /*nml*/) { } diff --git a/src/libnml/nml/nml_srv.cc b/src/libnml/nml/nml_srv.cc index 1a06c2d8308..cf513806ef3 100644 --- a/src/libnml/nml/nml_srv.cc +++ b/src/libnml/nml/nml_srv.cc @@ -337,7 +337,7 @@ set_diag_info(REMOTE_SET_DIAG_INFO_REQUEST * _req) } REMOTE_GET_DIAG_INFO_REPLY *NML_SERVER_LOCAL_PORT:: -get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * _req) +get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * /*_req*/) { get_diag_info_reply.cdi = cms->get_diagnostics_info(); get_diag_info_reply.status = cms->status; @@ -345,7 +345,7 @@ get_diag_info(REMOTE_GET_DIAG_INFO_REQUEST * _req) } REMOTE_GET_MSG_COUNT_REPLY *NML_SERVER_LOCAL_PORT:: -get_msg_count(REMOTE_GET_DIAG_INFO_REQUEST * _req) +get_msg_count(REMOTE_GET_DIAG_INFO_REQUEST * /*_req*/) { return (NULL); } diff --git a/src/libnml/os_intf/_sem.c b/src/libnml/os_intf/_sem.c index 22436a735d8..8c944a04d65 100644 --- a/src/libnml/os_intf/_sem.c +++ b/src/libnml/os_intf/_sem.c @@ -76,6 +76,7 @@ int rcs_sem_destroy(rcs_sem_t * sem) int sem_clear_bus_errors = 0; void sem_clear_bus_error_handler(int sig) { + (void)sig; sem_clear_bus_errors++; } diff --git a/src/libnml/os_intf/sem.cc b/src/libnml/os_intf/sem.cc index 98cd2a96eb5..f7f8877bc30 100644 --- a/src/libnml/os_intf/sem.cc +++ b/src/libnml/os_intf/sem.cc @@ -106,6 +106,6 @@ int RCS_SEMAPHORE::clear() } // This constructor declared private to prevent copying. -RCS_SEMAPHORE::RCS_SEMAPHORE(RCS_SEMAPHORE & sem) +RCS_SEMAPHORE::RCS_SEMAPHORE(RCS_SEMAPHORE & /*sem*/) { } diff --git a/src/libnml/os_intf/shm.cc b/src/libnml/os_intf/shm.cc index 9da4ce3d9b8..841c5a95f23 100644 --- a/src/libnml/os_intf/shm.cc +++ b/src/libnml/os_intf/shm.cc @@ -85,6 +85,6 @@ int } // This constructor declared private to prevent copying -RCS_SHAREDMEM::RCS_SHAREDMEM(RCS_SHAREDMEM & shm) +RCS_SHAREDMEM::RCS_SHAREDMEM(RCS_SHAREDMEM & /*shm*/) { } diff --git a/src/libnml/os_intf/timer.cc b/src/libnml/os_intf/timer.cc index 21bf221f1ef..0b49844ecad 100644 --- a/src/libnml/os_intf/timer.cc +++ b/src/libnml/os_intf/timer.cc @@ -34,13 +34,13 @@ extern "C" { #include "_timer.h" /* RCS_TIMER class */ -RCS_TIMER::RCS_TIMER(const char *process_name, const char *config_file) +RCS_TIMER::RCS_TIMER(const char * /*process_name*/, const char * /*config_file*/) { zero_timer(); set_timeout(0); } -RCS_TIMER::RCS_TIMER(double _timeout, const char *process_name, const char *config_file) +RCS_TIMER::RCS_TIMER(double _timeout, const char * /*process_name*/, const char * /*config_file*/) { zero_timer(); set_timeout(_timeout); diff --git a/src/libnml/posemath/_posemath.c b/src/libnml/posemath/_posemath.c index 581274052f3..23fc54e7bb6 100644 --- a/src/libnml/posemath/_posemath.c +++ b/src/libnml/posemath/_posemath.c @@ -296,6 +296,8 @@ int pmRotMatConvert(PmRotationVector const * const r, PmRotationMatrix * const m int pmRotZyzConvert(PmRotationVector const * const r, PmEulerZyz * const zyz) { + (void)r; + (void)zyz; #ifdef PM_DEBUG #ifdef PM_PRINT_ERROR pmPrintError("error: pmRotZyzConvert not implemented\n"); @@ -573,6 +575,8 @@ int pmMatRpyConvert(PmRotationMatrix const * const m, PmRpy * const rpy) int pmZyzRotConvert(PmEulerZyz const * const zyz, PmRotationVector * const r) { + (void)zyz; + (void)r; #ifdef PM_PRINT_ERROR pmPrintError("error: pmZyzRotConvert not implemented\n"); #endif @@ -621,6 +625,8 @@ int pmZyzMatConvert(PmEulerZyz const * const zyz, PmRotationMatrix * const m) int pmZyzRpyConvert(PmEulerZyz const * const zyz, PmRpy * const rpy) { + (void)zyz; + (void)rpy; #ifdef PM_PRINT_ERROR pmPrintError("error: pmZyzRpyConvert not implemented\n"); #endif @@ -681,6 +687,8 @@ int pmZyxMatConvert(PmEulerZyx const * const zyx, PmRotationMatrix * const m) int pmZyxZyzConvert(PmEulerZyx const * const zyx, PmEulerZyz * const zyz) { + (void)zyx; + (void)zyz; #ifdef PM_PRINT_ERROR pmPrintError("error: pmZyxZyzConvert not implemented\n"); #endif @@ -689,6 +697,8 @@ int pmZyxZyzConvert(PmEulerZyx const * const zyx, PmEulerZyz * const zyz) int pmZyxRpyConvert(PmEulerZyx const * const zyx, PmRpy * const rpy) { + (void)zyx; + (void)rpy; #ifdef PM_PRINT_ERROR pmPrintError("error: pmZyxRpyConvert not implemented\n"); #endif @@ -751,6 +761,8 @@ int pmRpyMatConvert(PmRpy const * const rpy, PmRotationMatrix * const m) int pmRpyZyzConvert(PmRpy const * const rpy, PmEulerZyz * const zyz) { + (void)rpy; + (void)zyz; #ifdef PM_PRINT_ERROR pmPrintError("error: pmRpyZyzConvert not implemented\n"); #endif @@ -759,6 +771,8 @@ int pmRpyZyzConvert(PmRpy const * const rpy, PmEulerZyz * const zyz) int pmRpyZyxConvert(PmRpy const * const rpy, PmEulerZyx * const zyx) { + (void)rpy; + (void)zyx; #ifdef PM_PRINT_ERROR pmPrintError("error: pmRpyZyxConvert not implemented\n"); #endif diff --git a/src/rtapi/rtapi_pci.cc b/src/rtapi/rtapi_pci.cc index 499828c4dc8..f3e71844515 100644 --- a/src/rtapi/rtapi_pci.cc +++ b/src/rtapi/rtapi_pci.cc @@ -428,6 +428,7 @@ int rtapi_request_firmware(const struct rtapi_firmware **fw, const char *name, s struct stat st; int r; int fd = -1; + (void)device; /* Allocate and initialize a firmware struct */ lfw = new rtapi_firmware; diff --git a/src/rtapi/uspace_common.h b/src/rtapi/uspace_common.h index e665988be6a..0e3e83b3aa9 100644 --- a/src/rtapi/uspace_common.h +++ b/src/rtapi/uspace_common.h @@ -62,6 +62,7 @@ int rtapi_shmem_new(int key, int module_id, unsigned long int size) #ifdef RTAPI WITH_ROOT; #endif + (void)module_id; rtapi_shmem_handle *shmem; int i; @@ -185,6 +186,7 @@ int rtapi_shmem_delete(int handle, int module_id) struct shmid_ds d; int r1, r2; rtapi_shmem_handle *shmem; + (void)module_id; if(handle < 0 || handle >= MAX_SHM) return -EINVAL; @@ -307,6 +309,7 @@ typedef struct { static int uuid_mem_id = 0; int rtapi_init(const char *modname) { + (void)modname; static uuid_data_t* uuid_data = 0; static const int uuid_id = 0; @@ -422,6 +425,7 @@ static int rtapi_clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *prequest, struct timespec *remain, const struct timespec *pnow) { + (void)pnow; #if defined(HAVE_CLOCK_NANOSLEEP) return clock_nanosleep(clock_id, flags, prequest, remain); #else diff --git a/src/rtapi/uspace_rtapi_app.cc b/src/rtapi/uspace_rtapi_app.cc index 0d014417579..f2e9ff15f32 100644 --- a/src/rtapi/uspace_rtapi_app.cc +++ b/src/rtapi/uspace_rtapi_app.cc @@ -109,7 +109,7 @@ static void set_namef(const char *fmt, ...) { } pthread_t queue_thread; -void *queue_function(void *arg) { +void *queue_function(void * /*arg*/) { set_namef("rtapi_app:mesg"); // note: can't use anything in this function that requires App() to exist // but it's OK to use functions that aren't safe for realtime (that's the @@ -662,7 +662,7 @@ struct Posix : RtapiApp void do_delay(long ns); }; -static void signal_handler(int sig, siginfo_t *si, void *uctx) +static void signal_handler(int sig, siginfo_t * /*si*/, void * /*uctx*/) { switch (sig) { case SIGXCPU: @@ -955,7 +955,7 @@ rtapi_task *RtapiApp::get_task(int task_id) { return task; } -void RtapiApp::unexpected_realtime_delay(rtapi_task *task, int nperiod) { +void RtapiApp::unexpected_realtime_delay(rtapi_task *task, int /*nperiod*/) { static int printed = 0; if(!printed) { diff --git a/src/rtapi/uspace_rtapi_parport.cc b/src/rtapi/uspace_rtapi_parport.cc index 2fed13a74ad..b7ffa39caf8 100644 --- a/src/rtapi/uspace_rtapi_parport.cc +++ b/src/rtapi/uspace_rtapi_parport.cc @@ -62,7 +62,7 @@ static void map_parports() { } } -int rtapi_parport_get(const char *mod_name, rtapi_parport_t *port, unsigned short base, unsigned short base_hi, unsigned int modes) { +int rtapi_parport_get(const char * /*mod_name*/, rtapi_parport_t *port, unsigned short base, unsigned short base_hi, unsigned int modes) { WITH_ROOT; memset(port, 0, sizeof(*port)); diff --git a/src/rtapi/uspace_rtapi_string.c b/src/rtapi/uspace_rtapi_string.c index 1c7d6a4f8e6..5d23b455a75 100644 --- a/src/rtapi/uspace_rtapi_string.c +++ b/src/rtapi/uspace_rtapi_string.c @@ -36,6 +36,7 @@ */ char *rtapi_kstrndup(const char *s, size_t max, rtapi_gfp_t gfp) { + (void)gfp; size_t len; char *buf; diff --git a/src/rtapi/uspace_ulapi.c b/src/rtapi/uspace_ulapi.c index 9680d60ba03..bbcfefacb9f 100644 --- a/src/rtapi/uspace_ulapi.c +++ b/src/rtapi/uspace_ulapi.c @@ -31,21 +31,33 @@ int rtapi_fifo_new(int key, int module_id, unsigned long int size, char mode) { + (void)key; + (void)module_id; + (void)size; + (void)mode; return -ENOSYS; } int rtapi_fifo_delete(int fifo_id, int module_id) { + (void)fifo_id; + (void)module_id; return -ENOSYS; } int rtapi_fifo_read(int fifo_id, char *buf, unsigned long size) { + (void)fifo_id; + (void)buf; + (void)size; return -ENOSYS; } int rtapi_fifo_write(int fifo_id, char *buf, unsigned long int size) { + (void)fifo_id; + (void)buf; + (void)size; return -ENOSYS; }