Closed Bug 737909 Opened 13 years ago Closed 13 years ago

Fix opt -Werror build with clang

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(2 files, 1 obsolete file)

The cairo codebase has no general way to mark a place as unreachable (like MOZ_NOT_REACHED), so I just used a known noreturn function that exits on opt builds too (abort).
Attachment #607997 - Flags: review?(jmuizelaar)
Comment on attachment 607997 [details] [diff] [review] Use abort() instead of assert(0) I'd rather us just not build cairo with -Werror. Is that possible?
Attached patch alternative patch (obsolete) (deleted) — Splinter Review
Turns out that the problem is not a general -Werror, but -Werror=return-type. The bad news is that we don't have support for building just cairo without it. The good news is that it is easier to avoid. The attached patch just adds a dummy return.
Assignee: nobody → respindola
Status: NEW → ASSIGNED
Attachment #608063 - Flags: review?(jmuizelaar)
Attached patch alternative patch (deleted) — Splinter Review
Attachment #608063 - Attachment is obsolete: true
Attachment #608063 - Flags: review?(jmuizelaar)
Attachment #608065 - Flags: review?(jmuizelaar)
Can we get this on mc please?
Comment on attachment 608065 [details] [diff] [review] alternative patch Return kPrivateCGCompositeClear instead. We also need to add a patch to gfx/cairo/
Attachment #608065 - Flags: review?(jmuizelaar) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Attachment #607997 - Flags: review?(jmuizelaar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: