This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compilation Warnings
- From: Yaping Cheng <ypingcheng at yahoo dot co dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 28 Jun 2003 08:47:51 +0100 (BST)
- Subject: Compilation Warnings
Hi,
I wrote a function as follows,
RENZYME *renzyme_copy ( RENZYME *r2 ) {
RENZYME *r;
char *name, *rs, *pt, *cr, *rst;
...
}
I am using gcc version 3.2.2 20030222 (Red Hat Linux
3.2.2-5) to compile it, but i got following warning
message:
graphic_editor.c: In function `renzyme_copy':
graphic_editor.c:23: warning: `rs' might be used
uninitialized in this function
graphic_editor.c:23: warning: `pt' might be used
uninitialized in this function
graphic_editor.c:23: warning: `cr' might be used
uninitialized in this function
graphic_editor.c:23: warning: `rst' might be used
uninitialized in this function
Can you tell me what cause it. It seems strange that
in line 23 declare 5 strings, there is warning for
four of them except the first one.
Thanks
Yaping
=====
_______________________________________________
DISCLAIMER:This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to which they are addressed. If you have received this
email in error please contact the sender, do not disclose its
contents to others and delete it from your system.
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/