Suppress compile warnings

This commit is contained in:
Scott Lahteine
2020-04-28 08:30:52 -05:00
parent 4b35ff1f07
commit bd82b8bc7e
2 changed files with 11 additions and 0 deletions

View File

@ -216,8 +216,14 @@ bool GCodeQueue::process_injected_command() {
gcode.process_parsed_command();
}
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wrestrict"
// Copy the next command into place
strcpy(injected_commands, &injected_commands[i + (c != '\0')]);
#pragma GCC diagnostic pop
return true;
}