Compilation Warnings
Yaping Cheng
ypingcheng@yahoo.co.uk
Sat Jun 28 12:19:00 GMT 2003
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/
More information about the Gcc-help
mailing list