[Bug c/94428] Reintroduce -Wzero-length-array
qinzhao at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 20 18:03:11 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428
--- Comment #4 from qinzhao at gcc dot gnu.org ---
a new warning -Wstrict-flex-arrays was added to gcc13.
when using -Wstrict-flex-arrays -fstrict-flex-arrays=3 together, the new
warning will report any misuse of zero-length arrays as flexible array members.
I think this new warning could be a replacement of this -Wzero-length-array.
therefore the warning -Wzero-length-array might not be needed anymore.
More information about the Gcc-bugs
mailing list