Skip to content

Commit

Permalink
Adding missing 'void' in function declarations
Browse files Browse the repository at this point in the history
* Addresses a build warning in Xcode 14.3
  • Loading branch information
LowAmmo authored and ffried committed May 1, 2023
1 parent 3bd7b2f commit cb050c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/CocoaLumberjack/DDFileLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ - (NSComparisonResult)reverseCompareByModificationDate:(DDLogFileInfo *)another
* want (even if device is locked). Thats why that attribute have to be changed to
* NSFileProtectionCompleteUntilFirstUserAuthentication.
*/
BOOL doesAppRunInBackground() {
BOOL doesAppRunInBackground(void) {
BOOL answer = NO;

NSArray *backgroundModes = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIBackgroundModes"];
Expand Down
4 changes: 2 additions & 2 deletions Sources/CocoaLumberjack/Extensions/DDFileLogger+Buffering.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static inline NSUInteger p_DDGetDefaultBufferSizeBytesMax(const BOOL max) {
return max ? kDDMaxBufferSize : kDDDefaultBufferSize;
}

static NSUInteger DDGetMaxBufferSizeBytes() {
static NSUInteger DDGetMaxBufferSizeBytes(void) {
static NSUInteger maxBufferSize = 0;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Expand All @@ -50,7 +50,7 @@ static NSUInteger DDGetMaxBufferSizeBytes() {
return maxBufferSize;
}

static NSUInteger DDGetDefaultBufferSizeBytes() {
static NSUInteger DDGetDefaultBufferSizeBytes(void) {
static NSUInteger defaultBufferSize = 0;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
Expand Down

0 comments on commit cb050c6

Please sign in to comment.