Browse Source

Don't define 'valptr' if unused (#17048)

vanilla_fb_2.0.x
ellensp 5 years ago
committed by GitHub
parent
commit
af23c0480e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Marlin/src/gcode/parser.cpp

2
Marlin/src/gcode/parser.cpp

@ -312,8 +312,10 @@ void GCodeParser::parse(char *p) {
char * const valptr = has_val ? is_str ? unescape_string(p) : p : nullptr;
#else
const bool has_val = valid_float(p);
#if ENABLED(FASTER_GCODE_PARSER)
char * const valptr = has_val ? p : nullptr;
#endif
#endif
#if ENABLED(DEBUG_GCODE_PARSER)
if (debug) {

Loading…
Cancel
Save