Closed Bug 217 Opened 27 years ago Closed 26 years ago

Netscape Compile Error

Categories

(MozillaClassic Graveyard :: Preferences, defect, P3)

1998-03-31
HP
HP-UX

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
Assignee: nobody → aoki
Component: Preferences
Status: NEW → ASSIGNED
This is fixed in the pending 4.5 profile manager merge; marking assigned until the merge happens.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
old bug
vrfy classic is not maintained.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.