Merge pull request #3519 from dreampiggy/bugfix/warning_c_no_param

Fix the warning of C function with no param
This commit is contained in:
DreamPiggy 2023-04-21 15:54:19 +08:00 committed by GitHub
commit a549e99922
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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, ^{