Fix the warning of C function with no param

This commit is contained in:
DreamPiggy 2023-04-21 15:52:41 +08:00
parent fb50c1d20f
commit ec278a2fb5
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
#pragma mark - Image scale
static inline NSArray<NSNumber *> * _Nonnull SDImageScaleFactors() {
static inline NSArray<NSNumber *> * _Nonnull SDImageScaleFactors(void) {
return @[@2, @3];
}

View File

@ -9,7 +9,7 @@
#import "SDImageAssetManager.h"
#import "SDInternalMacros.h"
static NSArray *SDBundlePreferredScales() {
static NSArray *SDBundlePreferredScales(void) {
static NSArray *scales;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{