[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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.