|
@@ -1100,6 +1100,9 @@ void GcodeSuite::process_next_command() {
|
1100
|
1100
|
* G-code "macros" to be called from within other G-code handlers.
|
1101
|
1101
|
*/
|
1102
|
1102
|
|
|
1103
|
+#pragma GCC diagnostic push
|
|
1104
|
+#pragma GCC diagnostic ignored "-Wstringop-truncation"
|
|
1105
|
+
|
1103
|
1106
|
void GcodeSuite::process_subcommands_now(FSTR_P fgcode) {
|
1104
|
1107
|
PGM_P pgcode = FTOP(fgcode);
|
1105
|
1108
|
char * const saved_cmd = parser.command_ptr; // Save the parser state
|
|
@@ -1117,6 +1120,8 @@ void GcodeSuite::process_subcommands_now(FSTR_P fgcode) {
|
1117
|
1120
|
parser.parse(saved_cmd); // Restore the parser state
|
1118
|
1121
|
}
|
1119
|
1122
|
|
|
1123
|
+#pragma GCC diagnostic pop
|
|
1124
|
+
|
1120
|
1125
|
void GcodeSuite::process_subcommands_now(char * gcode) {
|
1121
|
1126
|
char * const saved_cmd = parser.command_ptr; // Save the parser state
|
1122
|
1127
|
for (;;) {
|