Closed Bug 303623 Opened 20 years ago Closed 20 years ago

gcc335 needs extra cast in XPCOM glue code

Categories

(Core :: XPCOM, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mkaply)

Details

Attachments

(1 file)

When compiling xpcom/glue/standalone/nsGlueLinkingOS2.cpp with GCC 3.3.5-r1 I get the error nsGlueLinkingOS2.cpp G:/MozCompile/trunk/mozilla/xpcom/glue/standalone/nsGlueLinkingOS2.cpp: In function `nsresult (* XPCOMGlueLoad(const char*))(XPCOMFunctions*, const char*)': G:/MozCompile/trunk/mozilla/xpcom/glue/standalone/nsGlueLinkingOS2.cpp:131: error: invalid conversion from `nsresult (**)(XPCOMFunctions*, const char*)' to `int (__attribute__((system)) **)()' make.exe[5]: *** [nsGlueLinkingOS2.o] Error 1 It seems that 3.3.5 is more picky about type checking than 3.3.2.
Attached patch Extra castSplinter Review
This gets me through the problem
Attachment #191741 - Flags: review?(mozilla)
Comment on attachment 191741 [details] [diff] [review] Extra cast r/sr/a=mkaply
Attachment #191741 - Flags: superreview+
Attachment #191741 - Flags: review?(mozilla)
Attachment #191741 - Flags: review+
Attachment #191741 - Flags: approval1.8b4+
Fix checked in. Thanks for the push on this one.
Status: NEW → RESOLVED
Closed: 20 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: