Bizarre stdarg error with Xcode 3.0
Bizarre stdarg error with Xcode 3.0
- Subject: Bizarre stdarg error with Xcode 3.0
- From: Larry Campbell <email@hidden>
- Date: Wed, 31 Oct 2007 11:49:41 -0400
Just installed Leopard and Xcode 3.0, and an Objective-C file that
used to compile just find now fails with:
error: incompatible type for argument 1 of '__builtin_va_end'
Bizarrely, renaming the file from .m to .mm causes the compile to
succeed. Snipping the offending code out, I was able to reduce it to
this example:
#include <Foundation/Foundation.h>
#include <stdarg.h>
void foo(id obj, ...)
{
va_list ap;
va_start (ap, obj);
NS_DURING
NS_HANDLER
NS_ENDHANDLER
va_end(ap);
}
If you compile this as a .m file you get the error. If you compile it
as a .mm file you don't.
Is this a known "feature"?
- lc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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