In GCC you can declare your function with the attribute deprecated like this:
void myfunc() \_\_attribute\_\___attribute__ ((deprecated)); This will trigger a compile-time warning when that function is used in a .c file.
You can find more info under "Diagnostic pragmas" at http://gcc.gnu.org/onlinedocs/gcc/Pragmas.html