Re: Turning off 'deleting 'VOID*' is undefined' error
Re: Turning off 'deleting 'VOID*' is undefined' error
- Subject: Re: Turning off 'deleting 'VOID*' is undefined' error
- From: Stefan Werner <email@hidden>
- Date: Mon, 29 Jan 2007 13:12:58 +0100
On Jan 29, 2007, at 4:25 AM, Mike wrote:
Is there a setting in Xcode 2.4.1 for turning off the
warning: deleting 'VOID*' is undefined
warning?
IMHO this should be a full error and not just a warning...
When you delete a void pointer, no destructor will be called because
there is no way the compiler can figure out what destructor to call.
Explicitly cast this to the correct type or a superclass with virtual
destructor before calling delete. Introduce such a superclass if
necessary.
I strongly suggest that you don't ignore that warning but correct the
code that is causing it.
Stefan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden