mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues
Summary: @public I've increased the warning levels in the OSS frameworks, which caught a bunch of minor issues. I also fixed some new errors in Xcode 7 relating to designated initializers and TLS security. Test Plan: * Test the sample apps and make sure they still work. * Run tests.
This commit is contained in:
@@ -61,9 +61,19 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Concat two literals. Supports macro expansions
|
||||
*
|
||||
* i.e. RCT_CONCAT(foo, __FILE__)
|
||||
* Concat two literals. Supports macro expansions,
|
||||
* e.g. RCT_CONCAT(foo, __FILE__).
|
||||
*/
|
||||
#define RCT_CONCAT2(A, B) A ## B
|
||||
#define RCT_CONCAT(A, B) RCT_CONCAT2(A, B)
|
||||
|
||||
/**
|
||||
* Throw an assertion for unimplemented methods.
|
||||
*/
|
||||
#define RCT_NOT_IMPLEMENTED(method) \
|
||||
_Pragma("clang diagnostic push") \
|
||||
_Pragma("clang diagnostic ignored \"-Wmissing-method-return-type\"") \
|
||||
_Pragma("clang diagnostic ignored \"-Wunused-parameter\"") \
|
||||
RCT_EXTERN NSException *_RCTNotImplementedException(SEL, Class); \
|
||||
method NS_UNAVAILABLE { @throw _RCTNotImplementedException(_cmd, [self class]); } \
|
||||
_Pragma("clang diagnostic pop")
|
||||
|
||||
Reference in New Issue
Block a user