GCC Bugzilla – Bug 36392
gcc doesn't warn if a static recursive function is unused
Last modified: 2008-05-30 14:56:24 UTC
Take the following example:
int a (void)
GCC doesn't warn that a() is an unused function.
This is problematic if you remove all calls to a() from your code. Although a() uses itself, GCC should warn that no other function is using it, so that the user could remove it.
This has been fixed in 4.3.0:
t.c:3: warning: 'a' defined but not used