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.