summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-10-05 09:23:35 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-10-05 09:23:35 +0200
commit1b595a80934fa95234fb290913cfe533f740d965 (patch)
treea0d9641505631aa1e6284ebb2dc85f2e34ba2a21
parentbb1b9f095a4911fa6c173279b20116affd6ca897 (diff)
downloadcmocka-1b595a80934fa95234fb290913cfe533f740d965.tar.gz
cmocka-1b595a80934fa95234fb290913cfe533f740d965.tar.bz2
cmocka-1b595a80934fa95234fb290913cfe533f740d965.zip
src: Fix some compiler warnings
BUG: https://open.cryptomilk.org/issues/43
-rw-r--r--src/cmocka.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 1a41e52..a4dbae8 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -975,8 +975,8 @@ static int memory_equal_display_error(const char* const a, const char* const b,
}
}
if (differences) {
- cm_print_error("%d bytes of %p and %p differ\n", differences,
- a, b);
+ cm_print_error("%d bytes of %p and %p differ\n",
+ differences, (void *)a, (void *)b);
return 0;
}
return 1;
@@ -1000,8 +1000,8 @@ static int memory_not_equal_display_error(
}
}
if (same == size) {
- cm_print_error("%"PRIdS "bytes of %p and %p the same\n", same,
- a, b);
+ cm_print_error("%"PRIdS "bytes of %p and %p the same\n",
+ same, (void *)a, (void *)b);
return 0;
}
return 1;
@@ -1662,7 +1662,7 @@ void _test_free(void* const ptr, const char* file, const int line) {
file, line,
ptr, (unsigned long)block_info->size,
block_info->location.file, block_info->location.line,
- &guard[j]);
+ (void *)&guard[j]);
_fail(file, line);
}
}