Closed
Bug 217
Opened 27 years ago
Closed 26 years ago
Netscape Compile Error
Categories
(MozillaClassic Graveyard :: Preferences, defect, P3)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: dnebinger, Assigned: aoki)
Details
Created by David Nebinger (dnebinger@synertech.highmark.com) on Tuesday, April 14, 1998 11:20:12 AM PDT
Additional Details :
Netscape compile fails on line #124 of
ns/modules/libpref/src/prefapi.c. Changing the line from:
XP_FREEIF((void*)he->key);
to:
XP_FREEIF(he->key);
fixes the problem. If other compilers complain about the
missing typecast, potential resolution would be to create a
new macro that takes the type as an argument. Instead of
using the macro:
#define XP_FREEIF(obj) do { if(obj) { XP_FREE(obj); obj = 0;
}} while(0)
try the macro:
#define XP_FREEIFTYPE(obj,typ) do { if (obj) { XP_FREE(obj);
obj = (typ)0;}} while(0)
with line #124 as
XP_FREEIFTYPE(he->key,void*);
Thanks
Updated•27 years ago
|
Assignee: nobody → aoki
Component: Preferences
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•26 years ago
|
||
This is fixed in the pending 4.5 profile manager merge; marking assigned until
the merge happens.
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
Comment 2•26 years ago
|
||
old bug
You need to log in
before you can comment on or make changes to this bug.
Description
•