Using toolchains based on GCC14 (and newer), now turns this warning
into a systematic error (see [1]).
The build failure can be reproduced with this minimal defconfig:
BR2_x86_64=y
BR2_x86_atom=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PACKAGE_NGREP=y
BR2_PACKAGE_LIBNET=y
[1] https://gcc.gnu.org/gcc-14/porting_to.html
Fixes: https://autobuild.buildroot.org/results/20b/20b924c5c96b3f43e381d87e59fb160ba8d3dcd0//
Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
[Romain:
- add a defconfig to reproduce the issue
- add the minimal gcc version to reproduce the issue
]
Signed-off-by: Romain Naour <romain.naour@smile.fr>
(cherry picked from commit 53d2ef7ec6)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>