This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Disable gcc stringop-truncation warnings
The gcc 8 compiler introduces a warning for certain string manipulation functions, flagging usages which _may_ not be intended. An audit of the iPXE sources indicates all usages of strncat and strncpy are as intended, so the warnings currently issued are not helpful, especially if warnings are considered errors. Fix by detecting gcc's support for -Wno-stringop-truncation and, if detected, using that option to avoid the warning. Signed-off-by: Bruce Rogers <firstname.lastname@example.org> Modified-by: Michael Brown <email@example.com> Also-fixed-by: Christian Hesse <firstname.lastname@example.org> Also-fixed-by: Roman Kagan <email@example.com> Also-fixed-by: Bernhard M. Wiedemann <firstname.lastname@example.org> Also-fixed-by: Olaf Hering <email@example.com> Signed-off-by: Michael Brown <firstname.lastname@example.org>
- Loading branch information
Showing 1 changed file with 9 additions and 1 deletion.