Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

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 0xk1f0 committed Dec 26, 2021
1 parent f9497c5 commit 806da08
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 806da08

Please sign in to comment.