public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28492] -Wmissing-format-attribute causes warning for vsnprintf()
       [not found] <bug-28492-4@http.gcc.gnu.org/bugzilla/>
@ 2012-04-17 22:19 ` manu at gcc dot gnu.org
  2024-01-09 13:23 ` [Bug c/28492] -Wmissing-format-attribute points to vsnprintf() or related functions instead of the function that needs the attribute added manu at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: manu at gcc dot gnu.org @ 2012-04-17 22:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28492

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-04-17
                 CC|                            |manu at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-17 22:17:01 UTC ---
OK, I see that the warning is misleading, because it points to the call of
vsnprintf instead of pointing to vsnprintf_one.

ttest.c: In function ‘vsnprintf_one’:
ttest.c:826:5: warning: function might be possible candidate for ‘gnu_printf’
format attribute [-Wmissing-format-attribute]
     vsnprintf(self, 2, "%c", arglist);
     ^


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/28492] -Wmissing-format-attribute points to vsnprintf() or related functions instead of the function that needs the attribute added
       [not found] <bug-28492-4@http.gcc.gnu.org/bugzilla/>
  2012-04-17 22:19 ` [Bug c/28492] -Wmissing-format-attribute causes warning for vsnprintf() manu at gcc dot gnu.org
@ 2024-01-09 13:23 ` manu at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: manu at gcc dot gnu.org @ 2024-01-09 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2012-04-17 00:00:00         |2024-1-9

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
The option is called now -Wsuggest-attribute=format

See also https://gcc.gnu.org/pipermail/gcc/2024-January/243120.html for a
real-world case.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-09 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-28492-4@http.gcc.gnu.org/bugzilla/>
2012-04-17 22:19 ` [Bug c/28492] -Wmissing-format-attribute causes warning for vsnprintf() manu at gcc dot gnu.org
2024-01-09 13:23 ` [Bug c/28492] -Wmissing-format-attribute points to vsnprintf() or related functions instead of the function that needs the attribute added manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).