https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97793

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-11-11
           Keywords|                            |diagnostic

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testcase:

static int
foo ()
{
  for (;;)
    ;
}

int (*x)() = foo;

making foo not static elides the warning.

Reply via email to