mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
7b52f7f204
commit
24c91c251a
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user