gcc335 needs extra cast in XPCOM glue code

RESOLVED FIXED

Status

()

Core
XPCOM
RESOLVED FIXED
13 years ago
13 years ago

People

(Reporter: Peter Weilbacher, Assigned: mkaply)

Tracking

Trunk
x86
OS/2
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
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.
(Reporter)

Comment 1

13 years ago
Created attachment 191741 [details] [diff] [review]
Extra cast

This gets me through the problem
Attachment #191741 - Flags: review?(mozilla)
(Assignee)

Comment 2

13 years ago
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+
(Assignee)

Comment 3

13 years ago
Fix checked in. Thanks for the push on this one.
Status: NEW → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.