this means that there is no declaration of f_table structure. But this is a function prototype declaration and parameter is a pointer which size is known. So, gcc reports no errors. Solution -- declare structure before a function decl.
~d On Tuesday 06 July 2004 09:16, John Glendenning wrote: > Hi, > > I'm porting C code from motorola HC11 to Texas MSP430. In one of the > headers there is a function prototype, i.e. > > char f_dull(const struct f_table *t); > > The compiler reports a warning, > > "struct f_table declared inside parameter list" when it encounters the > prototype. > > When the C file that contains the function above is compiled, the compiler > reports the following, > > C file : conflicting types for 'f_dull' > h file: previous declaration of 'f_dull' > > The code all compiles under the HC11 compiler. Does anyone know what is > happening? > > Thanks > John G > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users