Description of problem:
I just tried to compile Core2 Test2 package gaim-0.75.99-20040318cvs.2
The compiler said
zephyr.c(1043): remark #592: variable "notice" is used before its
value is set
The source code is
if(!(inst = (char *)gaim_conv_chat_get_topic(gcc)))
inst = (char *)notice.z_class_inst;
This is the first mention of notice since it's declaration.
Suggest init notice before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
based on the variable names, this looks like zepher code. were you
just trying to edit gaim's source, or did an actual bug cause you to
notice this? it looks like a fairly typical instance of testing to see
if the assignment works. its highly confusing that we do this, since
most of the times you see something like that its ment to be an ==
instead of an =, but it does work and is valid.
It is Zephyr, but actually I believe the problem is on the second line
... which is not and should not be an ==. It is kind of a pedantic
bug report, but it should probably be fixed in case anyone actually
uses the zephyr plugin as shipped. Which no one does. :-P I'm
looking into it.
Fixed in CVS. That link won't be available to anoncvs for a few hours.
Glad to see this is fixed for 0.77. This is not an issue for Fedora
Core, so will just wait until 0.77 is released and we will pull in
this fix along with everything else.