Re: [PATCH] c-family: Have -Wformat-diag accept "decl-specifier" [PR103758]

2021-12-20 Thread Jakub Jelinek via Gcc-patches
On Mon, Dec 20, 2021 at 03:21:04PM -0500, Jason Merrill via Gcc-patches wrote: > > @@ -3215,6 +3215,14 @@ check_tokens (const token_t *tokens, unsigned ntoks, > > plural = "s"; > > } > > + /* As an exception, don't warn about "decl-specifier*" since > > +

Re: [PATCH] c-family: Have -Wformat-diag accept "decl-specifier" [PR103758]

2021-12-20 Thread Jason Merrill via Gcc-patches
On 12/17/21 17:59, Marek Polacek wrote: I'm tired of seeing cp/parser.c:15923:55: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] cp/parser.c:15925:57: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] every time I

Re: [PATCH] c-family: Have -Wformat-diag accept "decl-specifier" [PR103758]

2021-12-20 Thread Jeff Law via Gcc-patches
On 12/17/2021 3:59 PM, Marek Polacek via Gcc-patches wrote: I'm tired of seeing cp/parser.c:15923:55: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] cp/parser.c:15925:57: warning: misspelled term 'decl' in format; use 'declaration' instead

[PATCH] c-family: Have -Wformat-diag accept "decl-specifier" [PR103758]

2021-12-17 Thread Marek Polacek via Gcc-patches
I'm tired of seeing cp/parser.c:15923:55: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] cp/parser.c:15925:57: warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] every time I compile cp/parser.c, which happens...a lot.