Declare objc_selector outside the prototype for objc_msgSend(), removing a silly warning.

llvm-svn: 43706
This commit is contained in:
Steve Naroff 2007-11-05 14:55:35 +00:00
parent e4f9b23458
commit bd72289baa
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ namespace {
ConstantStringClassReference = 0;
NSStringRecord = 0;
Rewrite.setSourceMgr(Context->SourceMgr);
const char *s = "extern struct objc_object *objc_msgSend"
// declaring objc_selector outside the parameter list removes a silly
// scope related warning...
const char *s = "struct objc_selector;\n"
"extern struct objc_object *objc_msgSend"
"(struct objc_object *, struct objc_selector *, ...);\n"
"extern struct objc_object *objc_getClass"
"(const char *);\n";