Closed Bug 950340 Opened 11 years ago Closed 9 years ago

resolve warning in security/nss/lib/certdb/

Categories

(NSS :: Libraries, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1182667

People

(Reporter: stebog92, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release) Build ID: 20131214121520 Steps to reproduce: When i build, i found this warning : In function ‘cert_CheckCertRevocationStatus’: crl.c:2688:27: warning: unused variable ‘rv2’ [-Wunused-variable] SECStatus rv2 = CERT_FindCRLEntryReasonExten(entry, &reason); . I resolved it removing rv2 variable. I also want to mention that this is my first commit and i want to learn this process.
Attached patch 950340.patchSplinter Review
This is my first patch. Please let me know if this is ok.
Attachment #8347614 - Flags: review?(brian)
Comment on attachment 8347614 [details] [diff] [review] 950340.patch Review of attachment 8347614 [details] [diff] [review]: ----------------------------------------------------------------- ::: security/nss/lib/certdb/crl.c @@ +2684,5 @@ > rv = SECFailure; > } > if (SECFailure == rv) > { > + CERT_FindCRLEntryReasonExten(entry, &reason); Thanks for the patch. Please use "(void) " to make it clear that we're purposely ignoring the return value.
Attachment #8347614 - Flags: review?(brian) → review-
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → nobody
Component: Security → Libraries
Product: Core → NSS
Version: Trunk → trunk
Looks like this was fixed as part of Bug 1182667: https://hg.mozilla.org/projects/nss/diff/0a59f0bce2ea/lib/certdb/crl.c#l1.37 Thanks for the patch anyways.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: