Closed Bug 551050 Opened 14 years ago Closed 14 years ago

warning C4702: unreachable code (3x) in dlmalloc.c

Categories

(Core :: js-ctypes, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file)

This is caused in three places as follows:
a. (ABORT, (v)) in the set_segment_flags macro (used twice)
b. CORRUPTION_ERROR_ACTION(m); return 0; in tmalloc_small
Indeed, dlmalloc.c mentions that most compilers know that abort() does not return and also that some compilers issue warnings about unreachable code.
The existing numbers didn't seem to be in any particular order.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #431237 - Flags: review?(dwitte)
Attachment #431237 - Flags: review?(dwitte) → review+
Pushed changeset 99e20852ffe0 to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: