Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Oops, fixed warning/error from last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Feb 27, 2014
1 parent eb45962 commit 4ab8975
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/FMDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,14 @@ - (void)setInUse:(BOOL)b {
- (BOOL) beginUse {
// Equivalent to NSAssert, but not disabled by NS_BLOCK_ASSERTIONS:
BOOL ok;
if (dispatchQueue)
if (dispatchQueue) {
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wdeprecated-declarations\"")
ok = dispatch_get_current_queue() == dispatchQueue;
else
_Pragma("clang diagnostic pop")
} else {
ok = (BOOL)pthread_equal(pthread_self(), homeThread);
}
if (!ok) {
[[NSAssertionHandler currentHandler] handleFailureInMethod:_cmd
object:self
Expand Down

0 comments on commit 4ab8975

Please sign in to comment.