https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446

Christopher Head <headch at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |headch at gmail dot com

--- Comment #9 from Christopher Head <headch at gmail dot com> ---
I would also like to see this fixed (in the sense of making zero-length arrays
only a warning, and ideally with a -W flag that allows the warning to be
ignored). My use case is that I would like to use -Wpedantic because it catches
a bunch of useful legitimate issues (some of which cannot be enabled separately
by any other flags), but I build multiple executables from different subsets of
the same source tree and I have some arrays which should be of length zero in
some of the executables—at runtime I will never access any elements of them in
those executables, but they must be defined to avoid linker errors.
  • [Bug c/101446] -Wpedantic c... headch at gmail dot com via Gcc-bugs

Reply via email to