[Bug c/110322] Be more helpful when a varargs function is called in a wrong way

2023-06-21 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110322

Xi Ruoyao  changed:

   What|Removed |Added

 CC||xry111 at gcc dot gnu.org

--- Comment #5 from Xi Ruoyao  ---
(In reply to Andrew Pinski from comment #3)
> Note -Wformat-nonliteral is not enabled by default either (though IIRC
> Debian and Ubuntu turn it on by default).

I guess we should make the case "casting a non-char pointer implicitly to the
format string" default.

[Bug c/110322] Be more helpful when a varargs function is called in a wrong way

2023-06-21 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110322

Eric Gallager  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=28492
 CC||egallager at gcc dot gnu.org

--- Comment #4 from Eric Gallager  ---
kinda related: bug 28492

[Bug c/110322] Be more helpful when a varargs function is called in a wrong way

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110322

--- Comment #3 from Andrew Pinski  ---
Note -Wformat-nonliteral is not enabled by default either (though IIRC Debian
and Ubuntu turn it on by default).

[Bug c/110322] Be more helpful when a varargs function is called in a wrong way

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110322

Andrew Pinski  changed:

   What|Removed |Added

   Last reconfirmed||2023-06-20
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #2 from Andrew Pinski  ---
.

[Bug c/110322] Be more helpful when a varargs function is called in a wrong way

2023-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110322

Andrew Pinski  changed:

   What|Removed |Added

 Blocks||87403

--- Comment #1 from Andrew Pinski  ---
Confirmed.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403
[Bug 87403] [Meta-bug] Issues that suggest a new warning