]> granicus.if.org Git - clang/commitdiff
Prep for new warning.
authorMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 18:48:43 +0000 (18:48 +0000)
committerMike Stump <mrs@apple.com>
Tue, 21 Jul 2009 18:48:43 +0000 (18:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76609 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/rdar-6562655.m

index 27e020c425941d4ed30af9cac3e2bb09ff6f422a..1588e9e9753eab68e6b1c72652a35b313ca345c5 100644 (file)
@@ -53,7 +53,7 @@ typedef struct _NSRunArrayItem {
 @end
 @implementation Bar
 static Baz Qux = 0;
-- (id)copyWithZone:(NSZone *)zone {}
+- (id)copyWithZone:(NSZone *)zone { return 0; }
 - (void)encodeWithCoder:(NSCoder *)coder {}
 @end
 @implementation Bar (BarBotnet)
@@ -61,5 +61,6 @@ static Baz Qux = 0;
   if (!(*(BarAuxiliary **)&self->_support)->auxCFlags.botnetIsSet) {
     _cFlags.botnet = [self _initialBotnetZorg];
   }
+  while (1) {}
 }
 @end