This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Why "'X' used but never defined" is a warning and not error in gcc?
- From: Ilya Basin <basinilya at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 8 Oct 2012 14:19:15 +0400
- Subject: Why "'X' used but never defined" is a warning and not error in gcc?
- Reply-to: Ilya Basin <basinilya at gmail dot com>
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?