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

Anal-retentive compiler warning aversion


  • Subject: Anal-retentive compiler warning aversion
  • From: Art Gillespie <email@hidden>
  • Date: Mon, 10 Nov 2003 12:08:41 -0500
  • Mail-followup-to: email@hidden

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 ;)

Best,

Art
>>0xBA
_______________________________________________
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.

  • Follow-Ups:
    • Re: Anal-retentive compiler warning aversion
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: How to convert an AudioUnit in to a FSRef (or FSSpec)?
  • Next by Date: Re: threading questions
  • Previous by thread: Re: kAudioDevicePropertyStreamFormat unsupported?
  • Next by thread: Re: Anal-retentive compiler warning aversion
  • Index(es):
    • Date
    • Thread