Suppress compile warnings
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user