Closed Bug 368419 Opened 18 years ago Closed 18 years ago

Build broken on Solaris for gfxASurface.cpp

Categories

(Core :: Graphics, defect)

x86
SunOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: alfred.peng, Unassigned)

References

Details

Attachments

(2 files)

"gfxASurface.cpp", line 110: Warning (Anachronism): Formal argument destroy of type extern "C" void(*)(void*) in call to _moz_cairo_surface_set_user_data(_cairo_surface*, const _cairo_user_data_key*, void*, extern "C" void(*)(void*)) is being passed void(*)(void*). "gfxASurface.cpp", line 223: Error: "gfxASurface::SetData(const _cairo_user_data_key*, void*, extern "C" void(*)(void*))" was previously declared "gfxASurface::SetData(const _cairo_user_data_key*, void*, void(*)(void*))". 1 Error(s) and 1 Warning(s) detected. gmake[6]: *** [gfxASurface.o] Error 1
Depends on: 368377
Attached patch Patch v1Splinter Review
vlad, I'm not sure this is the best way to fix. Any comments?
Attachment #253017 - Flags: review?(vladimir)
Comment on attachment 253017 [details] [diff] [review] Patch v1 you might want to extern C the typedefs. you certainly don't want to extern C the whole class (what does that even do?) the file _is_ c++ so no need for the ifdef __cpluspluses
Attachment #253017 - Flags: review?(vladimir) → review-
Attached patch Patch v2Splinter Review
Attachment #253048 - Flags: review?(pavlov)
Andreas's patch for bug 368377 fixes this bug already.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attachment #253048 - Flags: review?(pavlov)
Sorry that I didn't notice this bug when attaching my patch, but thanks for verifying it and checking in!
Andreas, no problem:)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: