Permalink
Browse files

Clean up a few warnings

  • Loading branch information...
1 parent 77c55c5 commit 5bc046556df1e36298ac53b3e0e6b4a87f82de5c @PureAbstract committed Jun 9, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −1 Classes/XmlDocument.m
  2. +2 −1 OSX_Support/OSX_SecRandom.m
View
@@ -76,6 +76,7 @@ static void traverseAttrList( xmlAttrPtr attr, attrTraversal func )
static NSMutableDictionary *dictionaryFromAttributes( xmlAttrPtr attribute ) {
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
traverseAttrList( attribute, ^(xmlAttrPtr attr, BOOL *stop) {
+#pragma unused(stop)
NSString *name = [NSString stringWithXmlString:attr->name];
NSString *value = nil;
xmlNodePtr p = attr->children;
@@ -158,6 +159,7 @@ -(NSArray *)childNodes
NSMutableArray *children = [NSMutableArray array];
traverseNodeList( self.nodePtr->children, ^( xmlNodePtr child, BOOL *stop ) {
+#pragma unused(stop)
[children addObject:[XmlNode nodeForNode:child]];
});
@@ -345,7 +347,7 @@ -(NSArray *)xpathQuery:(NSString *)xpath
if( !nodeSet ) {
NSLog(@"Empty node set" );
} else {
- size_t i = 0;
+ int i = 0;
for( i = 0 ; i < nodeSet->nodeNr ; ++i ) {
xmlNodePtr node = nodeSet->nodeTab[i];
[results addObject:[XmlNode nodeForNode:node]];
@@ -9,6 +9,7 @@
int SecRandomCopyBytes( SecRandomRef rnd, size_t count, uint8_t *bytes )
{
+#pragma unused(rnd)
if( count == 0 )
return 0;
@@ -17,7 +18,7 @@ int SecRandomCopyBytes( SecRandomRef rnd, size_t count, uint8_t *bytes )
return -1;
}
- size_t bytesRead;
+ ssize_t bytesRead;
uint8_t *p = bytes;
do {

0 comments on commit 5bc0465

Please sign in to comment.