Why "'X' used but never defined" is a warning and not error in gcc?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux