Red Hat Bugzilla – Bug 110783
bad source code
Last modified: 2007-11-30 17:10:34 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Description of problem:
I just tried to compile package libcap-1_10-16 from Fedora.
The compiler said
cap_extint.c(94): remark #592: variable "cap_d" is used before its
value is set
The source code is
int set, blen;
__u32 * to = (__u32 *) &cap_d->set;
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. by inspection
that's more an unnecessary compiler warning than a bug in libcap.
to is set to the same memory address as cap_d->set, there doesn't need
to be anything useful in cap_d->set.
gcc-3.3.2-5 doesn't write this warning anymore.