This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68845] -Werror=array-bounds=[12] doesn't turn warning into error
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Dec 2015 22:38:40 +0000
- Subject: [Bug c/68845] -Werror=array-bounds=[12] doesn't turn warning into error
- Auto-submitted: auto-generated
- References: <bug-68845-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68845
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at redhat dot com
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Manuel LÃpez-IbÃÃez from comment #1)
> Perhaps the
> following works?
>
> Warray-bounds
> Alias(-Warray-bounds=,1,0)
To answer my own question. It should work and it is how -Wformat is
implemented. However, there is bug 68833.