Merge pull request #4062 from jbrazio/bugfix/compiler-warnings
Fixes misc gcc warnings
This commit is contained in:
commit
f66a194159
@ -1244,14 +1244,14 @@ inline bool code_value_bool() { return code_value_byte() > 0; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline float code_value_linear_units() { return code_value_float() * linear_unit_factor; }
|
inline float code_value_linear_units() { return code_value_float() * linear_unit_factor; }
|
||||||
inline float code_value_per_axis_unit(int axis) { return code_value_float() / axis_unit_factor(axis); }
|
|
||||||
inline float code_value_axis_units(int axis) { return code_value_float() * axis_unit_factor(axis); }
|
inline float code_value_axis_units(int axis) { return code_value_float() * axis_unit_factor(axis); }
|
||||||
|
inline float code_value_per_axis_unit(int axis) { return code_value_float() / axis_unit_factor(axis); }
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
inline float code_value_linear_units() { return code_value_float(); }
|
inline float code_value_linear_units() { return code_value_float(); }
|
||||||
inline float code_value_per_axis_unit(int axis) { return code_value_float(); }
|
inline float code_value_axis_units(int axis) { UNUSED(axis); return code_value_float(); }
|
||||||
inline float code_value_axis_units(int axis) { return code_value_float(); }
|
inline float code_value_per_axis_unit(int axis) { UNUSED(axis); return code_value_float(); }
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -4892,7 +4892,7 @@ inline void gcode_M110() {
|
|||||||
* M111: Set the debug level
|
* M111: Set the debug level
|
||||||
*/
|
*/
|
||||||
inline void gcode_M111() {
|
inline void gcode_M111() {
|
||||||
marlin_debug_flags = code_seen('S') ? code_value_byte() : DEBUG_NONE;
|
marlin_debug_flags = code_seen('S') ? code_value_byte() : (uint8_t) DEBUG_NONE;
|
||||||
|
|
||||||
const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
|
const static char str_debug_1[] PROGMEM = MSG_DEBUG_ECHO;
|
||||||
const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
|
const static char str_debug_2[] PROGMEM = MSG_DEBUG_INFO;
|
||||||
|
Loading…
Reference in New Issue
Block a user