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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
The documented purpose of -Wformat-overflow=2 is to point out potential
problems, including those where an argument is not known to be sufficiently
constrained.  (Level 1 behaves close to what you expect.)  Level 2 is not
enabled in -Wall or -Wextra and must be explicitly enabled.  Different designe
choices are of course possible but since some projects are using it as is it's
useful as designed.  This is not a bug.

Reply via email to