[cfe-dev] Relaxing format specifier checks
Joerg Sonnenberger via cfe-dev
cfe-dev at lists.llvm.org
Sat May 12 12:34:36 PDT 2018
On Fri, May 11, 2018 at 11:26:11PM +0000, Shoaib Meenai via cfe-dev wrote:
> What are people's thoughts here? Are there preferences for relaxing
> -Wformat and adding a new option for strict format warnings vs. keeping
> -Wformat as-is and adding a new option for relaxed format warnings?
Add a new relaxed mode, don't just relax the existing checks. We've had
a long history of the GCC printf checks being less useful than possible
exactly because it cares only about the promoted (effective) type.
Joerg
More information about the cfe-dev
mailing list