diff options
Diffstat (limited to 'clang/test/Analysis/NSWindow.m')
-rw-r--r-- | clang/test/Analysis/NSWindow.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Analysis/NSWindow.m b/clang/test/Analysis/NSWindow.m index e247ff18ceb0..aa36227f94d2 100644 --- a/clang/test/Analysis/NSWindow.m +++ b/clang/test/Analysis/NSWindow.m @@ -44,7 +44,7 @@ extern NSString *NSWindowDidBecomeKeyNotification; // Test cases. -void f1() { +void f1(void) { NSWindow *window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSTitledWindowMask|NSClosableWindowMask @@ -54,7 +54,7 @@ void f1() { [window orderFrontRegardless]; // no-warning } -void f2() { +void f2(void) { NSWindow *window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSTitledWindowMask|NSClosableWindowMask @@ -65,7 +65,7 @@ void f2() { [window orderFrontRegardless]; // no-warning } -void f2b() { +void f2b(void) { // FIXME: NSWindow doesn't own itself until it is displayed. NSWindow *window = [[NSWindow alloc] // no-warning initWithContentRect:NSMakeRect(0,0,100,100) @@ -80,7 +80,7 @@ void f2b() { } -void f3() { +void f3(void) { // FIXME: For now we don't track NSWindow. NSWindow *window = [NSWindow alloc]; // expected-warning{{never read}} } |