Mark all libobjc2 headers as system headers when not compiling the runtime
itself. This makes clang hide warnings.main
parent
7218882f7e
commit
c73b7a2f0b
@ -1,3 +1,7 @@
|
||||
#if defined(__clang__) && !defined(__OBJC_RUNTIME_INTERNAL__)
|
||||
#pragma clang system_header
|
||||
#endif
|
||||
|
||||
#import "Object.h"
|
||||
|
||||
@interface Protocol : Object @end
|
||||
|
||||
@ -1 +1,5 @@
|
||||
#if defined(__clang__) && !defined(__OBJC_RUNTIME_INTERNAL__)
|
||||
#pragma clang system_header
|
||||
#endif
|
||||
|
||||
#include <objc/runtime.h>
|
||||
|
||||
Loading…
Reference in New Issue