Red Hat Bugzilla – Bug 169657
local variable used before set
Last modified: 2007-11-30 17:11:14 EST
Description of problem:
I just tried to compile Fedora development package rpm-4.4.2-5
with the new GNU C compiler version 4.0.2 and the compiler flag -Wall.
The compiler said
compress.c:442: warning: 'pid2' is used uninitialized in this function
The source code is
waitpid(pid2, NULL, 0);
I agree with the compiler. Suggest initialise local variable "pid2"
before first use.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
FWIW, this code is never traversed if HAVE_LIBZ is defined.
Fixed by upgrading to later version of file internal to (at least) rpm-4.4.5.