https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107334
uecker at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |uecker at gcc dot gnu.org
--- Comment #4 from uecker at gcc dot gnu.org ---
You can avoid the warning by declaring the function itself as not returning:
#include <stdlib.h>
[[noreturn]] void f(int i)
{
if (i <= 0) {
abort();
} else {
f(i-1);
}
}
