[cfe-commits] r43706 - /cfe/trunk/Driver/RewriteTest.cpp
Steve Naroff
snaroff at apple.com
Mon Nov 5 06:55:35 PST 2007
Author: snaroff
Date: Mon Nov 5 08:55:35 2007
New Revision: 43706
URL: http://llvm.org/viewvc/llvm-project?rev=43706&view=rev
Log:
Declare objc_selector outside the prototype for objc_msgSend(), removing a silly warning.
Modified:
cfe/trunk/Driver/RewriteTest.cpp
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=43706&r1=43705&r2=43706&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Mon Nov 5 08:55:35 2007
@@ -55,7 +55,10 @@
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";
More information about the cfe-commits
mailing list