[Bug middle-end/91667] bogus -Wformat-overflow warning

2019-09-06 Thread jbeulich at suse dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91667

--- Comment #2 from jbeulich at suse dot com ---
(In reply to Martin Sebor from comment #1)
> The warning is still in GCC 9 but has gone away in GCC 10.0 with r274837.

While I trust you one this, ...

> In bug 91490, comment #4 I said: I'm not sure this should be backported.  It
> suppresses bogus warnings but also introduces new warnings for invalid code."

I'm struggling to see how said change affects the case here: There's no
flexible array involved here, and also from other parts of the change I can't
seem to be able to make a connection.

Please forgive me asking, but I'd appreciate some explanation as to the
connection. I'm in particular wondering whether it wouldn't be possible to
backport a subset of the change, if there's worry about new warnings
(personally I'd consider such fine when they only affect invalid code).

[Bug middle-end/91667] bogus -Wformat-overflow warning

2019-09-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91667

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
  Component|c   |middle-end
 Resolution|--- |DUPLICATE

--- Comment #1 from Martin Sebor  ---
The warning is still in GCC 9 but has gone away in GCC 10.0 with r274837.  In
bug 91490, comment #4 I said: I'm not sure this should be backported.  It
suppresses bogus warnings but also introduces new warnings for invalid code."

*** This bug has been marked as a duplicate of bug 91490 ***