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 <brogers@suse.com> Modified-by: Michael Brown <mcb30@ipxe.org> Also-fixed-by: Christian Hesse <list@eworm.de> Also-fixed-by: Roman Kagan <rkagan@virtuozzo.com> Also-fixed-by: Bernhard M. Wiedemann <bwiedemann@suse.de> Also-fixed-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
177 |
|
177 |
|
178 |
|
178 |
|
179 |
|
179 |
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
180 |
|
188 |
|
181 |
|
189 |
|
182 |
|
190 |
|
|
|
||
437 |
|
445 |
|
438 |
|
446 |
|
439 |
|
447 |
|
440 |
|
|
|
|
448 |
|
|
441 |
|
449 |
|
442 |
|
450 |
|
443 |
|
451 |
|