[Openec] unused functions

Frieder Ferlemann frieder.ferlemann at web.de
Fri Nov 5 17:57:02 EDT 2010


Hi Paul,

thanks for the good commenting of the Makefile!
The commit (*) mentions a lot of unused functions:

+ DISABLEWARNING(6,16)
+# warning 6 is for overlapping declarations, 16 is for unused functions,
+# of which we seem to have a lot.

This can be a problem for SDCC. While Keil has individual functions
as linkable objects (and thus the linker can remove unused functions)
the linker used with SDCC is presented with complete files as
linkable objects. (and thus cannot remove unused functions...)

Could you reenable warning 16 and then encapsulate unused functions
(not their prototypes) with #ifndef SDCC ... #endif?

Greetings,
Frieder


(*) http://dev.laptop.org/git/users/rsmith/ec-1.75/commit/?h=master-keil&id=56ca5b41600757d06adbf75c9c2b4918618a0ae0


More information about the Openec mailing list