test.c: static void foo(); void bar() { foo(); } $ gcc -c test.c test.c:1: warning: 'foo' used but never defined Why warning and not error? Another *.o can refer this static function?
test.c: static void foo(); void bar() { foo(); } $ gcc -c test.c test.c:1: warning: 'foo' used but never defined Why warning and not error? Another *.o can refer this static function?