Skip to content

Commit

Permalink
Minor warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman authored and quinntaylor committed Jan 22, 2015
1 parent ddddb82 commit edf3189
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
24 changes: 15 additions & 9 deletions CHDataStructures.xcodeproj/project.pbxproj
Expand Up @@ -193,23 +193,23 @@
/* Begin PBXCopyFilesBuildPhase section */
E44B57800E9553A700F9DD1A /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 12;
dstPath = "~/Library/Frameworks";
dstSubfolderSpec = 0;
buildActionMask = 8;
dstPath = "";
dstSubfolderSpec = 10;
files = (
E44B57660E95538600F9DD1A /* CHDataStructures.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
runOnlyForDeploymentPostprocessing = 1;
};
E4677860100462F600E7A565 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "~/Library/Application Support/Developer/Shared/Xcode/CustomDataViews/";
dstSubfolderSpec = 0;
buildActionMask = 8;
dstPath = "";
dstSubfolderSpec = 16;
files = (
E46778671004633A00E7A565 /* CHDataStructuresFormatters.plist in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

Expand Down Expand Up @@ -853,6 +853,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
GCC_ENABLE_OBJC_GC = no;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = source/CHDataStructures_Prefix.pch;
INFOPLIST_FILE = "resources/Info-Framework.plist";
Expand All @@ -868,6 +869,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
GCC_ENABLE_OBJC_GC = no;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = source/CHDataStructures_Prefix.pch;
INFOPLIST_FILE = "resources/Info-Framework.plist";
Expand All @@ -883,6 +885,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
Expand Down Expand Up @@ -933,6 +936,7 @@
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
Expand All @@ -941,7 +945,7 @@
GCC_ENABLE_SYMBOL_SEPARATION = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_USE_GCC3_PFE_SUPPORT = YES;
GCC_VERSION = 4.0;
GCC_VERSION = "";
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_MISSING_PARENTHESES = NO;
Expand All @@ -959,10 +963,12 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
FRAMEWORK_VERSION = A;
GCC_ENABLE_OBJC_GC = no;
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = source/CHDataStructures_Prefix.pch;
GCC_VERSION = "";
INFOPLIST_FILE = "resources/Info-Framework.plist";
INSTALL_PATH = "@executable_path/../Frameworks";
OTHER_LDFLAGS = "-lgcov";
Expand Down
4 changes: 2 additions & 2 deletions source/CHAbstractBinarySearchTree.m
Expand Up @@ -258,7 +258,7 @@ - (id) nextObject {
// TODO: How to not push a null pad for leaf nodes?
}
else {
CHBinaryTreeStack_POP(); // ignore the null pad
(void)CHBinaryTreeStack_POP(); // ignore the null pad
return CHBinaryTreeStack_POP()->object;
}
}
Expand Down Expand Up @@ -636,7 +636,7 @@ - (NSSet*) set {

- (NSString*) debugDescription {
NSMutableString *description = [NSMutableString stringWithFormat:
@"<%@: 0x%x> = {\n", [self class], self];
@"<%@: 0x%p> = {\n", [self class], self];
CHBinaryTreeNode *current;
CHBinaryTreeStack_DECLARE();
CHBinaryTreeStack_INIT();
Expand Down
2 changes: 1 addition & 1 deletion source/CHAnderssonTree.m
Expand Up @@ -142,7 +142,7 @@ - (void) removeObject:(id)anObject {
BOOL isRightChild;
while (current != NULL && stackSize > 1) {
current = parent;
CHBinaryTreeStack_POP();
(void)CHBinaryTreeStack_POP();
parent = CHBinaryTreeStack_TOP;
isRightChild = (parent->right == current);

Expand Down
3 changes: 2 additions & 1 deletion source/CHMutableDictionary.m
Expand Up @@ -51,7 +51,8 @@ CFHashCode CHDictionaryHash(const void *value) {
CHDictionaryEqual
};

void createCollectableCFMutableDictionary(__strong CFMutableDictionaryRef* dictionary, NSUInteger initialCapacity) {
HIDDEN void createCollectableCFMutableDictionary(CFMutableDictionaryRef* dictionary, NSUInteger initialCapacity)
{
// Create a CFMutableDictionaryRef with callback functions as defined above.
*dictionary = CFDictionaryCreateMutable(kCFAllocatorDefault,
initialCapacity,
Expand Down

0 comments on commit edf3189

Please sign in to comment.