re: Best way to get warnings for 10.5 only calls?
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