git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] status_printf_ln: Suppress false positive warnings of empty format string.

From
Stefan Beller <stefanbeller@googlemail.com>
Date
Jul 19, 2013, 16:04 UTC
Message-ID
<51E9638C.9090207@googlemail.com>
In-Reply-To
<7v7ggmy1wn.fsf@alter.siamese.dyndns.org>
> 
> Even if the " " variant is faster, it does not matter if its output
> is incorrect ;-)
Agreed.
Show 6 quoted lines
> I think we discussed this already?  The conclusion was it is silly
> for GCC to warn on -Wformat-zero-length for user-defined function in
> the first place, IIRC.  func(other, args, fmt,...), when invoked as
> func(other, args, ""), may very well do something useful regardless
> of the formatting part based on other args.
> 

I am sorry, I did not pay attention enough to that specific topic. I was just finding warnings on next and pu, so I wondered how to fix it.

Previous: Junio C Hamano
Message 3 of 3 in “status_printf_ln: Suppress false positive warnings of empty format string.”
  1. status_printf_ln: Suppress false positive warnings of empty format string.Stefan Beller, Jul 19, 2013
  2. Junio C HamanoJul 19, 2013
  3. Stefan BellerJul 19, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.