Closed Bug 968849 Opened 12 years ago Closed 12 years ago

Fix some XPCOM warnings

Categories

(Core :: XPCOM, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: tzimmermann, Assigned: tzimmermann)

Details

Attachments

(1 file, 1 obsolete file)

GCC warns about uninitialized variables.
Attachment #8371537 - Flags: review?(doug.turner) → review?(nfroyd)
Comment on attachment 8371537 [details] [diff] [review] Bug 968849: Fix GCC warnings about unintialized variables Review of attachment 8371537 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the change below. ::: xpcom/tests/TestDeadlockDetector.cpp @@ +167,5 @@ > len = 0; > } > else { > NS_ERROR(PR_ErrorToName(PR_GetError())); > + len = 0; Instead of doing this, why don't we move |len| to be declared inside the for loop, and initialize len to 0. Then you can remove the assignment in the PR_POLL_HUP case.
Attachment #8371537 - Flags: review?(nfroyd) → review+
Updated according to your review. Thanks.
Attachment #8371537 - Attachment is obsolete: true
Attachment #8371574 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: