This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Warnings on unwind-dw2.c


Under Linux, I got

/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c: In function
`extract_cie_info':
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c:219: warning: implicit
declaration of function `strlen'
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c: In function
`execute_stack_op':
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c:300: warning: `result'
might be used uninitialized in this function
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c: In function
`uw_frame_state_for':
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c:886: warning: implicit
declaration of function `memset'
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c: In function
`uw_install_context_1':
/home/hjl/work/gnu/src/gcc-3.0/gcc/gcc/unwind-dw2.c:1103: warning: implicit
declaration of function `memcpy'

I saw

#if defined(POSIX) || defined(USG)
#include <string.h>
#endif

in tsystem.h. But neither POSIX nor USG is defined when compiling
unwind-dw2.c under Linux. POSIX is defined in config.h and hconfig.h.
But for some reason, neither is included in unwind-dw2.c.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]