Closed Bug 723122 Opened 12 years ago Closed 12 years ago

fix clang build

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: espindola, Assigned: espindola)

References

Details

Attachments

(1 file)

Attached patch fix buildSplinter Review
See also bug 723114.

This patch is just a quick fix. Clang warns on GetImageFromSourceSurface via -Wreturn-type and we build with -Werror=return-type.
Attachment #593453 - Flags: review?(joe)
Attachment #593453 - Flags: review?(joe) → review?(jmuizelaar)
Attachment #593453 - Flags: review?(jmuizelaar) → review+
merge! merge!
Status: NEW → ASSIGNED
And the next one :(
In file included from ../../../dist/include/nsCoreAnimationSupport.h:49:
../../../dist/include/nsIOSurface.h:48:7: error: redefinition of 'NSOpenGLContext' as different kind of symbol
(Please can you set assignee when attaching patches, or if using bzexport, file a bug against it :-))

https://hg.mozilla.org/mozilla-central/rev/5a80e90839fd
Assignee: nobody → respindola
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Is it possible to get this into mozilla-beta? Today I've tried several times to build Thunderbird 12 with Clang, but it failed constantly with the error from Bug 723187. It takes me a hour or so to find out what the problem is and to find this Bug. Thanks.
(In reply to Nomis101 from comment #8)
> Is it possible to get this into mozilla-beta? Today I've tried several times
> to build Thunderbird 12 with Clang, but it failed constantly with the error
> from Bug 723187. It takes me a hour or so to find out what the problem is
> and to find this Bug. Thanks.

You could just export "-Wreturn-type" to turn the error into a warning and let the build finish.
I've applied this patch to fix the error, maybe your workaround would also help. But I think more about all the other users who are trying to build Firefox/Thunderbird 12 with Clang and run into the same error.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: