Red Hat Bugzilla – Bug 141588
local variable used before set
Last modified: 2007-11-30 17:10:56 EST
Description of problem:
I just tried to compile package gaim-1.0.1-3 from
Redhat Fedora Core 3.
The compiler said
zephyr.c(1081): remark #592: variable "from" is used before its value
The source code is
I agree with the compiler. This code would benefit from rework.
Suggest that from is not used in routine handle_message, so can
be safely deleted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
The variable "from" isn't actually _used_ anywhere. It's just passed
to a function, and that function completely ignores it. Why the
parameter is there in the first place... your guess is as good as
mine. I've removed it in CVS head and in oldstatus. This error
should be gone in Gaim 1.1.0.