https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90117
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Yes, it does, and most instances of this warning in GCC code should already be
cleaned up so I think we can resolve this bug as fixed.
$ cat pr90117.c && gcc -S -Wall -Wformat-diag pr90117.c
__attribute__ ((format (gcc_cdiag, 1, 2))) void
cdiag (const char*, ...);
void f (void)
{
cdiag ("%<%s%>", "");
}
pr90117.c: In function ‘f’:
pr90117.c:6:11: warning: quoted ‘%s’ directive in format; use ‘%qs’ instead
[-Wformat-diag]
6 | cdiag ("%<%s%>", "");
| ^~~~~~