Bug#450746: gcc: Generates extnernal references for static variable.

2007-11-23 Thread Kurt Roeckx
On Fri, Nov 23, 2007 at 09:28:36AM +0100, Matthias Klose wrote: > Kurt Roeckx writes: > > Package: gcc-4.2 > > Version: 4.2.2-3 > > > > Hi, > > > > This program: > > static int foo(); > > int bar() { foo(); } > > > > When being compiled generates a warning: > > tst.c:1: warning: 'foo' used but n

Bug#450746: gcc: Generates extnernal references for static variable.

2007-11-23 Thread Matthias Klose
Kurt Roeckx writes: > Package: gcc-4.2 > Version: 4.2.2-3 > > Hi, > > This program: > static int foo(); > int bar() { foo(); } > > When being compiled generates a warning: > tst.c:1: warning: 'foo' used but never defined > > And it actually creates an reference to an extneral symbol, just like

Bug#450746: gcc: Generates extnernal references for static variable.

2007-11-09 Thread Kurt Roeckx
Package: gcc-4.2 Version: 4.2.2-3 Hi, This program: static int foo(); int bar() { foo(); } When being compiled generates a warning: tst.c:1: warning: 'foo' used but never defined And it actually creates an reference to an extneral symbol, just like static wasn't there. $ nm tst.o 0