Skip to content

Commit 7c59a0f

Browse files
committed
add warning for repeated use of weak refs
1 parent 4b0bf1a commit 7c59a0f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Base/Common.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ CLANG_WARN_IMPLICIT_SIGN_CONVERSION = NO
4747
// For example, this can catch issues when one incorrectly intermixes using NSNumbers and raw integers.
4848
CLANG_WARN_INT_CONVERSION = YES;
4949

50+
// Warn about repeatedly using a weak reference without assigning the weak reference to a strong reference.
51+
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
52+
5053
// Warn about classes that unintentionally do not subclass a root class (such as NSObject).
5154
CLANG_WARN_OBJC_ROOT_CLASS = YES
5255

0 commit comments

Comments
 (0)