Closed Bug 601974 Opened 14 years ago Closed 13 years ago

[clang]: error: exception specification in declaration does not match previous declaration MOZALLOC_THROW_BAD_ALLOC in /toolkit/xre

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b10

People

(Reporter: Nomis101, Assigned: espindola)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file Buildlog with errors
Building with Clang on Mac OS X 10.6 gives a lot of errors like:

../../dist/include/mozilla/mozalloc.h:224:7: error: exception specification in
      declaration does not match previous declaration
void* operator new(size_t size) MOZALLOC_THROW_BAD_ALLOC
      ^

for /mozilla/toolkit/xre. Because the error is a bit long, I've attached it as a text file. As I remember there was a similar error for Bug 576355.
Attachment #500627 - Flags: review? → review?(benjamin)
Comment on attachment 500627 [details] [diff] [review]
keep -fexceptions and MOZ_CPP_EXCEPTIONS in sync

Let's just centralize the logic and set ENABLE_CXX_EXCEPTIONS = 1 here.
Attachment #500627 - Flags: review?(benjamin) → review-
Hey, nice feature. Thanks for the tip.
Attachment #500627 - Attachment is obsolete: true
Attachment #501419 - Flags: review?(benjamin) → review+
Attachment #501419 - Flags: approval2.0? → approval2.0+
Assignee: nobody → respindola
http://hg.mozilla.org/mozilla-central/rev/49b68a67b575
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b10
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: