Permalink
Browse files

Fix some compiler warnings

  • Loading branch information...
1 parent 8b48967 commit 1afeeaefd7d39e50f1d8860e64c47ce9828ef98f @patperry patperry committed Aug 17, 2012
Showing with 5 additions and 2 deletions.
  1. +3 −0 src/yajl_alloc.c
  2. +2 −2 src/yajl_tree.c
View
@@ -25,17 +25,20 @@
static void * yajl_internal_malloc(void *ctx, size_t sz)
{
+ (void)ctx;
return malloc(sz);
}
static void * yajl_internal_realloc(void *ctx, void * previous,
size_t sz)
{
+ (void)ctx;
return realloc(previous, sz);
}
static void yajl_internal_free(void *ctx, void * ptr)
{
+ (void)ctx;
free(ptr);
}
View
@@ -456,8 +456,8 @@ yajl_val yajl_tree_get(yajl_val n, const char ** path, yajl_type type)
{
if (!path) return NULL;
while (n && *path) {
- unsigned int i;
- int len;
+ size_t i;
+ size_t len;
if (n->type != yajl_t_object) return NULL;
len = n->u.object.len;

0 comments on commit 1afeeae

Please sign in to comment.