This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/76732] Improve Woverride-init


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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|GCC should warn on repeated |Improve Woverride-init
                   |initializer for same array  |
                   |element / struct member.    |
           Severity|normal                      |enhancement

--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
> Surprised -Wall doesn't set -Woverride-init then; presume this was a
> conscious decision?

It is enabled by -Wextra. You can find the rationale here: PR24010

Clang warns by default.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]