[LLVMbugs] [Bug 11559] Regression: clang claims that -[NSApp stop:] is deprecated – but only on i386

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 13 16:52:19 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=11559

Fariborz Jahanian <fjahanian at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #1 from Fariborz Jahanian <fjahanian at apple.com> 2011-12-13 18:52:19 CST ---
When compiled for i386, I see that 
- (void)stop:(id)sender __attribute__((deprecated));
is deprecated in @interface NSMovieView

I also see that NSMovieView class has been ifdef'ed out under x86_64 compile.
This is not a clang 
issue and behaves as expected.

> $ cat test.mm
> #import <AppKit/AppKit.h>
> 
> int main() {
>   [NSApp stop:nil];
> }
> tests-MacBook-Pro-2:src test$ third_party/llvm-build/Release+Asserts/bin/clang
> -c  test.mm   
> tests-MacBook-Pro-2:src test$ third_party/llvm-build/Release+Asserts/bin/clang
> -c  test.mm   -arch i386
> test.mm:4:4: warning: 'stop:' is deprecated [-Wdeprecated-declarations]
>   [NSApp stop:nil];
>    ^
> 1 warning generated.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list