ahby@com2serv.c2s.mn.org (Shane P. McCarron) (02/02/89)
I have run across something that I find curious. The following code: main() { int broken(); (void) broken(); return(0); } static int broken() { return(0); } Causes gcc -c -pedantic to report: gccbug.c: In function broken: gccbug.c:11: warning: `broken' was declared `extern' and later `static' However, if I try to declare the forward reference of the function 'static int broken()', I get an 'invalid storage class specifier' warning. Am I doing something wrong, or does gcc 1.32 have a problem here. And if it is me, then how can I forward reference a function that has translation unit scope? -- Shane P. McCarron ATT: +1 612 452-9522 Project Manager UUCP: ahby@c2s.mn.org