• 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: No deprecation warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No deprecation warnings


  • Subject: Re: No deprecation warnings
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 1 Sep 2009 11:33:24 -0700

David Dunham wrote:

One of my projects gives deprecation warnings. Another doesn't. I don't see anything different in the build settings -- the quiet target shows "Warn About Deprecated Functions" checked.

Comparing the build log texts, the one that doesn't show deprecation warnings has several different options enabled:. -fpermissive, -Wnon- virtual-dtor, -Weffc++, etc.


I spotted these by manually pasting the two outputs into two text- editing windows, replacing every space with a newline, then visually comparing the two columnar window. The first difference appears after the -O0 (dash-Oh-zero) option.

There's likely a command-line sequence of 'tr', 'sort', and 'diff' that can automate this, in order to find all the specific differences so you can locate them in your build settings.

Next step is searching the build settings, and toggling each differing option to find which one has the side-effect of disabling deprecations (man gcc is mute on this).

Or maybe invert one of the no-deprecation options (e.g. -Wdeprecated- declarations) to re-enable the deprecations.

  -- GG

_______________________________________________
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


  • Follow-Ups:
    • Re: No deprecation warnings
      • From: David Dunham <email@hidden>
  • Prev by Date: 10.6 gcov link failure
  • Next by Date: Re: 10.6 gcov link failure
  • Previous by thread: No deprecation warnings
  • Next by thread: Re: No deprecation warnings
  • Index(es):
    • Date
    • Thread