Skip to content

Commit

Permalink
Compiler warning cleanup for extra flags.
Browse files Browse the repository at this point in the history
If FMDB is embedded in a project with the `-Wall` & `-Wextra` ‘Other warning flags’ enabled the unused parameters in these methods and the extra semicolon raise warnings at build time.
  • Loading branch information
Skylar Schipper committed Oct 2, 2015
1 parent ed8362d commit e0e9a6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fmdb/FMDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ - (BOOL)open {
- (BOOL)openWithFlags:(int)flags {
return [self openWithFlags:flags vfs:nil];
}
- (BOOL)openWithFlags:(int)flags vfs:(NSString *)vfsName; {
- (BOOL)openWithFlags:(int)flags vfs:(NSString *)vfsName {
if (_db) {
return YES;
}
Expand Down Expand Up @@ -277,6 +277,7 @@ - (int)busyRetryTimeout {
}

- (void)setBusyRetryTimeout:(int)i {
#pragma unused(i)
NSLog(@"%s:%d", __FUNCTION__, __LINE__);
NSLog(@"FMDB: setBusyRetryTimeout does nothing, please use setMaxBusyRetryTimeInterval:");
}
Expand Down Expand Up @@ -371,6 +372,7 @@ - (BOOL)rekeyWithData:(NSData *)keyData {

return (rc == SQLITE_OK);
#else
#pragma unused(keyData)
return NO;
#endif
}
Expand All @@ -391,6 +393,7 @@ - (BOOL)setKeyWithData:(NSData *)keyData {

return (rc == SQLITE_OK);
#else
#pragma unused(keyData)
return NO;
#endif
}
Expand Down

0 comments on commit e0e9a6c

Please sign in to comment.