A question on egcs prototype

H.J. Lu hjl@lucon.org
Tue Sep 23 07:46:00 GMT 1997


> 
> > 1. We keep the .def files unchanged and we modify the .h file ...
> > 2. My current scheme, which was rejected, changes the .def file ...
> 
> Or we forward declare the enums, and leave the definition as-is.
> 
> 
> r~
> 

# gcc -c foo.c
foo.c:3: warning: parameter has incomplete type

-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
--foo.c--
enum foo;

extern void bar (enum foo);

enum foo { x, y};



More information about the Gcc mailing list