https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92292
Domani Hannes <ssbssa at yahoo dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at yahoo dot de --- Comment #2 from Domani Hannes <ssbssa at yahoo dot de> --- (In reply to jos...@codesourcery.com from comment #1) > This would be an interaction between the built-in function having a printf > format attribute and the header having either a gnu_printf or an ms_printf > format attribute (depending on feature test macros); as those attributes > aren't exact duplicates, both are applied (it's perfectly valid for a > function to have multiple format attributes, but I suppose we should > special-case this for format attributes for built-in functions with a more > specific format attribute in the header declaration). But does it make sense to do a format check multiple times for one function? If it's the same format attribute twice, you get duplicate warnings. And if the format attributes are different, then I suspect that one of them has to be wrong.