• 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: Anal-retentive compiler warning aversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anal-retentive compiler warning aversion


  • Subject: Re: Anal-retentive compiler warning aversion
  • From: Doug Wyatt <email@hidden>
  • Date: Fri, 14 Nov 2003 14:10:29 -0800

I checked in the fix ... thanks!

Doug


On Nov 10, 2003, at 9:08, Art Gillespie wrote:
FWIW,

The following at AUDispatch.cpp:369

ComponentResult result;

causes gcc (3.3 20030304 on 10.3.0) to issue

'ComponentResult result' might be used uninitialized in this function.

Since I learned long ago that -Werror is the most useful compiler switch
of them all, I need to change it to

ComponentResult result = noErr;

to compile warning- (and in my case, error-) free.

Now if only there were a -Wno-parameter-persistence switch for
AUValidator ;)
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Anal-retentive compiler warning aversion (From: Art Gillespie <email@hidden>)

  • Prev by Date: Re: MIDI Driver Panther Fun
  • Next by Date: Re: in-memory AudioUnit?
  • Previous by thread: Anal-retentive compiler warning aversion
  • Next by thread: Error Definitions
  • Index(es):
    • Date
    • Thread