Closed
Bug 76051
Opened 24 years ago
Closed 24 years ago
Illegal implicit casts break CodeWarrior6
Categories
(SeaMonkey :: Build Config, defect, P3)
Tracking
(Not tracked)
VERIFIED
WONTFIX
mozilla1.0
People
(Reporter: lordpixel, Assigned: lordpixel)
References
Details
Attachments
(6 files)
|
554 bytes,
patch
|
Details | Diff | Splinter Review | |
|
671 bytes,
patch
|
Details | Diff | Splinter Review | |
|
1.37 KB,
patch
|
Details | Diff | Splinter Review | |
|
848 bytes,
patch
|
Details | Diff | Splinter Review | |
|
604 bytes,
patch
|
Details | Diff | Splinter Review | |
|
2.38 KB,
patch
|
Details | Diff | Splinter Review |
CodeWarrior 6 can't build libreg.mcp due to an illegal implicit cast from (char *
*) to (void **). Why do I feel that I'm gonna find a few of these?
Patch will be attached shortly
| Assignee | ||
Comment 1•24 years ago
|
||
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
Generalised bug, not specific to libreg.
Interesting;y, CW6 seems to be applyng C++ rules to reg.c
Summary: Illegal implicit cast in libreg breaks CodeWarrior6 → Illegal implicit casts break CodeWarrior6
| Assignee | ||
Comment 4•24 years ago
|
||
| Assignee | ||
Comment 5•24 years ago
|
||
| Assignee | ||
Comment 6•24 years ago
|
||
| Assignee | ||
Comment 7•24 years ago
|
||
Are we sure there aren't some compiler options that might be a better way to fix
this? How about the "relaxed pointer type rules" option?
Updated•24 years ago
|
Priority: -- → P3
Target Milestone: --- → mozilla1.0
| Assignee | ||
Comment 9•24 years ago
|
||
Um, well,
* There are only 6 fixes to make in the whole tree.
* Why would we want to disable errors being generated from code which is illegal
according to the C++ spec (or so I'm told).
Obviously one of these errors at least is for a C file and is legal, but having
the casts made explicit actually serves to document what's happening in the code
more clearly, IMO.
| Assignee | ||
Comment 10•24 years ago
|
||
BTW, the changes I made were purely to make it compile. If anyone can look at
them and say they're conceptually wrong and a better fix it needed, please pipe
up now!
Comment 11•24 years ago
|
||
This one looks suspicious to me:
- aContext.GetDeviceContext(*getter_AddRefs(theDevContext));
+ aContext.GetDeviceContext((nsIDeviceContext *&)*
getter_AddRefs(theDevContext));
and there's a double cast here which looks wrong:
- (nsIWidget*)(aEvent->widget)->GetClientData((PluginViewerImpl *)pluginViewer);
+ (nsIWidget*)(aEvent->widget)->GetClientData((void *&)(PluginViewerImpl *
)pluginViewer);
The rest looks good.
Comment 12•24 years ago
|
||
This should not be mine. Reassigning to lordpixel@mac.com since he's been doing
all the work
Assignee: jj → lordpixel
Comment 13•24 years ago
|
||
If this doesn't break CW7 let's close this as WONTIX
| Assignee | ||
Comment 14•24 years ago
|
||
Well, I don't have 7 to check. Its possible that many of these have been fixed
along the way in other bugs. Last time I asked somone said all of the CW7 builds
are on a branch and no fixes have been checked into the trunk. Is this still
true? If so, we won't know if all of them have been fixed. I don't know if its
possible to build the trunk in CW 7?
Comment 15•24 years ago
|
||
ccarlen got a branch building on Pro7 and our target to land that on the trunk
is the end of October (2001 for you pessimists :-) I'm gonna close this and
75333 as WONTFIX. Sorry to throw away the work Andy but since we skipped Pro6
(and it may very well be that ccarlen used some of this for Pro7 so we're prlooy
not actually throwing it away...
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
Comment 16•24 years ago
|
||
verified wontfix.
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•