Skip to content

Commit

Permalink
Enable -Wstrict-prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
sharplet committed Jan 7, 2019
1 parent e0770cd commit 33a2bfe
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions ReactiveObjC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2590,6 +2590,7 @@
baseConfigurationReference = 57A4D2461BA13F9700F7D4B1 /* tvOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2609,6 +2610,7 @@
baseConfigurationReference = 57A4D2461BA13F9700F7D4B1 /* tvOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2628,6 +2630,7 @@
baseConfigurationReference = 57A4D2461BA13F9700F7D4B1 /* tvOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2647,6 +2650,7 @@
baseConfigurationReference = 57A4D2461BA13F9700F7D4B1 /* tvOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -2736,6 +2740,7 @@
baseConfigurationReference = A97451351B3A935E00F48E55 /* watchOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2755,6 +2760,7 @@
baseConfigurationReference = A97451351B3A935E00F48E55 /* watchOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2774,6 +2780,7 @@
baseConfigurationReference = A97451351B3A935E00F48E55 /* watchOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2793,6 +2800,7 @@
baseConfigurationReference = A97451351B3A935E00F48E55 /* watchOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -2857,6 +2865,7 @@
baseConfigurationReference = D047263A19E49FE8006002AA /* Mac-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2873,6 +2882,7 @@
baseConfigurationReference = D047263A19E49FE8006002AA /* Mac-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -2923,6 +2933,7 @@
baseConfigurationReference = D047263419E49FE8006002AA /* iOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand All @@ -2939,6 +2950,7 @@
baseConfigurationReference = D047263419E49FE8006002AA /* iOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -3003,6 +3015,7 @@
baseConfigurationReference = D047263A19E49FE8006002AA /* Mac-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -3034,6 +3047,7 @@
baseConfigurationReference = D047263419E49FE8006002AA /* iOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -3083,6 +3097,7 @@
baseConfigurationReference = D047263A19E49FE8006002AA /* Mac-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -3116,6 +3131,7 @@
baseConfigurationReference = D047263419E49FE8006002AA /* iOS-Framework.xcconfig */;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjC/NSObject+RACAppKitBindings.m
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (instancetype)initWithTarget:(id)target bindingName:(NSString *)bindingName op

@weakify(self);

void (^cleanUp)() = ^{
void (^cleanUp)(void) = ^{
@strongify(self);

id target = self.target;
Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjC/NSObject+RACKVOWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ - (RACDisposable *)rac_observeKeyPath:(NSString *)keyPath options:(NSKeyValueObs

BOOL isObject = attributes->objectClass != nil || strstr(attributes->type, @encode(id)) == attributes->type;
BOOL isProtocol = attributes->objectClass == NSClassFromString(@"Protocol");
BOOL isBlock = strcmp(attributes->type, @encode(void(^)())) == 0;
BOOL isBlock = strcmp(attributes->type, @encode(void(^)(void))) == 0;
BOOL isWeak = attributes->weak;

// If this property isn't actually an object (or is a Class object),
Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjC/RACSignal+Operations.m
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ - (RACSignal *)bufferWithTime:(NSTimeInterval)interval onScheduler:(RACScheduler
RACSerialDisposable *timerDisposable = [[RACSerialDisposable alloc] init];
NSMutableArray *values = [NSMutableArray array];

void (^flushValues)() = ^{
void (^flushValues)(void) = ^{
@synchronized (values) {
[timerDisposable.disposable dispose];

Expand Down

0 comments on commit 33a2bfe

Please sign in to comment.