Suppress compile warnings
This commit is contained in:
parent
4b35ff1f07
commit
bd82b8bc7e
2 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue