Pay attention to dead code in your programe.

after return x; exit(x); pthread_exit( ptr ) , etc.
These codes will not execute for ever, but the compiler can't detect and
remind you.