Fix gcc 4 build by disabling assertion on private data. gcc 3.3 doesn't care. No bug. Camino only. r=smfr

This commit is contained in:
mark%moxienet.com 2005-07-15 00:02:15 +00:00
parent 7b52f7f204
commit 24c91c251a

View File

@ -2156,7 +2156,11 @@ nsChildView::Idle()
- (void)dealloc - (void)dealloc
{ {
#if __GNUC__ < 4
// _savePort is @private and there's no other way to access it.
// gcc 3.3 doesn't care.
NS_ASSERTION(!_savePort || IsValidPort(_savePort), "Bad port"); NS_ASSERTION(!_savePort || IsValidPort(_savePort), "Bad port");
#endif
[super dealloc]; // This sets the current port to _savePort (which should be [super dealloc]; // This sets the current port to _savePort (which should be
// a valid port, checked with the assertion above. // a valid port, checked with the assertion above.