diff options
author | Daniel Seither <daniel@youneedabudget.com> | 2022-10-06 19:14:57 +0300 |
---|---|---|
committer | Daniel Seither <daniel@youneedabudget.com> | 2022-10-06 19:14:57 +0300 |
commit | 3e5ecb6fee94de8f1b2e483f71e73ac9703997bc (patch) | |
tree | a1500f4da3cc869d8d14cea5dcc2329cdf4faf10 | |
parent | d31d362cd5cf8a121c3823ebfb65d961f0eea658 (diff) |
Fix dangling reference warning on assign object property
This doesn't change the behavior, it just silences this compiler warning
when using FMDB in a project that has the
-Wobjc-property-assign-on-object-type warning flag.
https://clang.llvm.org/docs/AutomaticReferenceCounting.html#property-declarations
The alternative would have been to make this a weak property, but this
would have been a behavior change, and after reading the discussion
https://github.com/ccgus/fmdb/issues/522, I gather that this is
something that shouldn't be done in FMDB without bumping the major
version number.
-rwxr-xr-x | src/fmdb/FMDatabasePool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmdb/FMDatabasePool.h b/src/fmdb/FMDatabasePool.h index 952fcd9..341c05f 100755 --- a/src/fmdb/FMDatabasePool.h +++ b/src/fmdb/FMDatabasePool.h @@ -38,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN /** Delegate object */ -@property (atomic, assign, nullable) id delegate; +@property (atomic, unsafe_unretained, nullable) id delegate; /** Maximum number of databases to create */ |