[Bug c/94428] Reintroduce -Wzero-length-array

2022-12-20 Thread qinzhao at gcc dot gnu.org via Gcc-bugs
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 ar

[Bug c/94428] Reintroduce -Wzero-length-array

2021-09-24 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428 --- Comment #3 from Segher Boessenkool --- (In reply to Martin Sebor from comment #1) > With the introduction of -Wzero-length-bounds in GCC 10 (which, > incidentally, was added specifically to ease the adoption of the stricter > array bounds che

[Bug c/94428] Reintroduce -Wzero-length-array

2021-09-24 Thread kees at outflux dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428 --- Comment #2 from Kees Cook --- Note that this needs a struct attribute that will allow structs to be excluded from the diagnostic (since the kernel needs to deal with legacy UAPI headers forever).

[Bug c/94428] Reintroduce -Wzero-length-array

2020-04-01 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Keywo

[Bug c/94428] Reintroduce -Wzero-length-array

2020-04-01 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94428 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|