libmudflap

Eyal Lebedinsky eyal@eyal.emu.id.au
Fri Apr 25 12:19:00 GMT 2003


Now that I am adding many wrapper functions, I note that there are
a large number of compile warnings even in the vanilla build:

../../../gcc/libmudflap/mf-runtime.c:1821: warning: implicit declaration
of function `__wrap_alloca'
../../../gcc/libmudflap/mf-runtime.c:2052: warning: implicit declaration
of function `kill'
../../../gcc/libmudflap/mf-runtime.c:2058: warning: implicit declaration
of function `snprintf'
../../../gcc/libmudflap/mf-hooks.c:539: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:588: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:621: warning: implicit declaration of
function `strcasecmp'
../../../gcc/libmudflap/mf-hooks.c:631: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:645: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:649: warning: implicit declaration of
function `strncasecmp'
../../../gcc/libmudflap/mf-hooks.c:682: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:746: warning: implicit declaration of
function `memmem'
../../../gcc/libmudflap/mf-hooks.c:762: warning: implicit declaration of
function `strnlen'
../../../gcc/libmudflap/mf-hooks.c:772: warning: implicit declaration of
function `bzero'
../../../gcc/libmudflap/mf-hooks.c:782: warning: implicit declaration of
function `bcopy'
../../../gcc/libmudflap/mf-hooks.c:792: warning: implicit declaration of
function `bcmp'
../../../gcc/libmudflap/mf-hooks.c:801: warning: implicit declaration of
function `index'
../../../gcc/libmudflap/mf-hooks.c:810: warning: implicit declaration of
function `rindex'
../../../gcc/libmudflap/mf-hooks.c:323: warning: implicit declaration of
function `getpagesize'
../../../gcc/libmudflap/mf-hooks.c:373: warning: implicit declaration of
function `getpagesize'
../../../gcc/libmudflap/mf-hooks.c:417: warning: implicit declaration of
function `__wrap_free'
../../../gcc/libmudflap/mf-hooks.c:430: warning: implicit declaration of
function `__wrap_malloc'

These relate to two issues
1) the library is built with strict rules, so non-posix funcs
   are not prototyped.
2) some wrappers refer to other wrappers using CALL_WRAP() and
   no prototype is present for the callee.

While thses warnings are not fatal, it is probably a good idea
to adjust the build process so that these are cleared - it is
not always portable to covert int to ptr.

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>



More information about the Gcc mailing list