Ashok Nadkarni <[EMAIL PROTECTED]> wrote:
> I would suggest you go through your source checking to make
> sure there are no duplicate prototypes anywhere.
This is indeed a good idea, and there are already some suggestions for
achieving it in the prc-tools documentation.
> Unfortunately, the gcc compiler does not catch these errors.
-Wimplicit-function-declaration, -Wredundant-decls, and possibly also
-Wmissing-declarations. RTFM.
> It cannot catch
> all of them since the duplicates may be in multiple source modules, but at
> least it could catch the most common cases when the prototypes are defined
> in header files.
If your coding style is so terrible that different modules can get
different declarations for a function from different places then you
probably have problems of epic proportions already. Nonetheless,
passing all your source code as a single module through GCC with the
above options will probably enable you to flush out any inconsistencies
in your function section arrangements.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html