• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Removing a compiler warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing a compiler warning


  • Subject: Re: Removing a compiler warning
  • From: Greg Hulands <email@hidden>
  • Date: Sun, 1 Feb 2004 10:56:22 +1000

The warning is this

warning: `return' with a value, in function returning void


On 01/02/2004, at 10:26 AM, Jvrn Salewski wrote:

> am 01.02.2004 1:03 Uhr schrieb Greg Hulands unter
> email@hidden:
>
>> Hi,
>> In an old project I have just started to bring up to date for panther
>> I
>> have a convention in the dealloc method to return
>
> The dealloc method to override returns void, nothing else.
>
>> [super dealloc].
>
> This is not only your convention, but everybody does so, since calling
> [super dealloc] is explained in the documentation of the dealloc
> message
> (NSObject) as being mandatory in subclasses (of NSObject):
>
> "the subclass method should incorporate superclass versions of dealloc
> through a message to super"
>
>> This
>> is in every class, so it is generating a lot of warnings.
>
> What sort of warnings. Could you give us a quote?
>> Is there a
>> way to suppress this warning in GCC 3.3?
>>
>
> Generally one shouldn't suppress warnings but remedy their cause.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Removing a compiler warning (From: Jörn Salewski <email@hidden>)

  • Prev by Date: Re: Removing a compiler warning
  • Next by Date: Re: Removing a compiler warning
  • Previous by thread: Re: Removing a compiler warning
  • Next by thread: Re: Removing a compiler warning
  • Index(es):
    • Date
    • Thread