mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Since GCC12 several warnings like the following are produced in zipl/boot compile targets: CC zipl/boot/stage2.o stage2.c: In function ‘start’: stage2.c:99:24: warning: array subscript 0 is outside array bounds of ‘struct stage2_descr[0]’ [-Warray-bounds] 99 | stage2_descr = *(struct stage2_descr*)STAGE2_DESC; This is the same issue as reported for the Kernel [1][2]. There is currently no sane fix available, therefore simply disable the warning for the zipl/boot/ targets. [1] https://lore.kernel.org/lkml/yt9dzgkelelc.fsf@linux.ibm.com/ [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99578 Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>