This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warnings on unwind-dw2.c
- To: gcc at gcc dot gnu dot org
- Subject: Warnings on unwind-dw2.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 2 Jul 2001 12:22:02 -0700
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.