[Bug analyzer/126858] -Wanalyzer-use-of-uninitialized-value false positive with printf's %n
vincent-gcc at vinc17 dot net via Gcc-bugs <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126858
--- Comment #3 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
This one is actually specific to printf:
int printf (const char *, ...);
int f (void)
{
int n;
printf ("%n", &n);
return n;
}
gives the warning, but if I change "printf" to "t" (i.e. just change the
function name), the warning disappears.
So this is a 3rd reason why it is different from PR126859.