Skip to content
Snippets Groups Projects
Unverified Commit af23c048 authored by ellensp's avatar ellensp Committed by GitHub
Browse files

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

parent 624ab24a
Branches
Tags
No related merge requests found
...@@ -312,8 +312,10 @@ void GCodeParser::parse(char *p) { ...@@ -312,8 +312,10 @@ void GCodeParser::parse(char *p) {
char * const valptr = has_val ? is_str ? unescape_string(p) : p : nullptr; char * const valptr = has_val ? is_str ? unescape_string(p) : p : nullptr;
#else #else
const bool has_val = valid_float(p); const bool has_val = valid_float(p);
#if ENABLED(FASTER_GCODE_PARSER)
char * const valptr = has_val ? p : nullptr; char * const valptr = has_val ? p : nullptr;
#endif #endif
#endif
#if ENABLED(DEBUG_GCODE_PARSER) #if ENABLED(DEBUG_GCODE_PARSER)
if (debug) { if (debug) {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment