Skip to content

Commit

Permalink
Fixed all compile time warnigns as of Xcode 8.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Theisen authored and ksjogo committed Apr 13, 2017
1 parent 2b56f23 commit 9c149fb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 2 additions & 0 deletions objc/NSObject+Nu.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,6 @@
/*! Property list helper. Return the binary property list representation of the object. */
- (NSData *) binaryPropertyListRepresentation;

- (NSString *) stringValue;

@end
1 change: 1 addition & 0 deletions objc/NSObject+Nu.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#import "NuMethod.h"
#import "NuClass.h"
#import "NuCell.h"
#import "NSString+Nu.h"

@protocol NuCanSetAction
- (void) setAction:(SEL) action;
Expand Down
3 changes: 0 additions & 3 deletions objc/NuBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,6 @@ id add_method_to_class(Class c, NSString *methodName, NSString *signature, NuBlo
if (!nu_block_table) nu_block_table = [[NSMutableDictionary alloc] init];
// watch for problems caused by these ugly casts...
[nu_block_table setObject:block forKey:[NSNumber numberWithUnsignedLong:(unsigned long) imp]];
#if !TARGET_OS_IPHONE
[[NSGarbageCollector defaultCollector] disableCollectorForPointer: block];
#endif
// insert the method handler in the class method table
nu_class_replaceMethod(c, selector, imp, signature_str);
//NSLog(@"setting handler for %s(%s) in class %s", method_name_str, signature_str, class_getName(c));
Expand Down
4 changes: 3 additions & 1 deletion objc/NuBridgeSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#import "NuBridgeSupport.h"
#import "NuInternals.h"
#import "NSFileManager+Nu.h"


#pragma mark - NuBridgeSupport.m

Expand Down Expand Up @@ -175,4 +177,4 @@ + (NSString *) stringValue
}

@end
#endif
#endif
2 changes: 2 additions & 0 deletions objc/NuOperators.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#import "NuBridge.h"
#import "NuBridgedFunction.h"
#import "NuClass.h"
#include <readline/readline.h>
#import "NSString+Nu.h"

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
Expand Down
1 change: 1 addition & 0 deletions objc/NuParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#import "NSDictionary+Nu.h"
#import "NuException.h"
#import "NuCell.h"
#include <readline/readline.h>

#define PARSE_NORMAL 0
#define PARSE_COMMENT 1
Expand Down
8 changes: 1 addition & 7 deletions objc/NuTestHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,11 @@ - (void) finalize

+ (void) resetDeallocationCount
{
#if !TARGET_OS_IPHONE
[[NSGarbageCollector defaultCollector] collectExhaustively];
#endif
deallocationCount = 0;
}

+ (int) deallocationCount
{
#if !TARGET_OS_IPHONE
[[NSGarbageCollector defaultCollector] collectExhaustively];
#endif
return deallocationCount;
}

Expand All @@ -147,4 +141,4 @@ + (NSRange) getNSRangeFromProxy:(id<NuTestProxy>) proxy {
return [proxy NSRangeValue];
}

@end
@end

0 comments on commit 9c149fb

Please sign in to comment.