Skip to content

Commit

Permalink
🩹 Fix pragma ignored for older GCC (MarlinFirmware#22978)
Browse files Browse the repository at this point in the history
  • Loading branch information
descipher authored and thinkyhead committed Dec 25, 2021
1 parent ed78f7f commit e44f2b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1096,11 +1096,15 @@ void GcodeSuite::process_next_command() {
process_parsed_command();
}

#pragma GCC diagnostic push
#if GCC_VERSION >= 80000
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif

/**
* Run a series of commands, bypassing the command queue to allow
* G-code "macros" to be called from within other G-code handlers.
*/

void GcodeSuite::process_subcommands_now(FSTR_P fgcode) {
PGM_P pgcode = FTOP(fgcode);
char * const saved_cmd = parser.command_ptr; // Save the parser state
Expand Down

0 comments on commit e44f2b7

Please sign in to comment.