• 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: Best way to get warnings for 10.5 only calls?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Best way to get warnings for 10.5 only calls?


  • Subject: re: Best way to get warnings for 10.5 only calls?
  • From: George Warner <email@hidden>
  • Date: Thu, 31 Jan 2008 10:34:01 -0800
  • Thread-topic: Best way to get warnings for 10.5 only calls?

On Wed, 30 Jan 2008 15:29:51 -0600, Knowledge Engineering
<email@hidden> wrote:

> (1) Using Xcode 3.0 on Leopard for a project whose deployment target
> is 10.4 and above, what is the easiest way to get warning messages if
> I use a 10.5 - only function call?

You could (temporarily) switch back to the 10.4 SDK and turn on "warn about
missing prototypes".

SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk
SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk

MACOSX_DEPLOYMENT_TARGET = 10.4

GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
OTHER_CFLAGS = $(value) -Wimplicit-function-declaration

> (2) Similar question as relates to "64 bit clean" calls. Is there a
> "Carbon Dater"-style tool that will help pinpoint 64-bit gotchas?

I just turn on the missing prototypes & warn implicit function declaration
flags and build it 64-bit. The compiler already catches most pointer to int
type errors.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)



 _______________________________________________
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

  • Prev by Date: Why is C99 not enabled by default?
  • Next by Date: Debugging threads and hanging issue
  • Previous by thread: Re: Best way to get warnings for 10.5 only calls?
  • Next by thread: Find In Project Broken In 2.5 When Using All-In-One View?
  • Index(es):
    • Date
    • Thread