]> granicus.if.org Git - clang/commitdiff
Declare objc_selector outside the prototype for objc_msgSend(), removing a silly...
authorSteve Naroff <snaroff@apple.com>
Mon, 5 Nov 2007 14:55:35 +0000 (14:55 +0000)
committerSteve Naroff <snaroff@apple.com>
Mon, 5 Nov 2007 14:55:35 +0000 (14:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43706 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index dfe3d4e93b4774ce6ba7cab0689826b9be8ce7e0..e253ae8242527560896609eaa02370ab1ca6a364 100644 (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";