summaryrefslogtreecommitdiff
path: root/devel/cmocka
diff options
context:
space:
mode:
authorjoerg <joerg>2015-06-08 13:38:50 +0000
committerjoerg <joerg>2015-06-08 13:38:50 +0000
commit2b99e4279ee74f60cc9175af5628dcb20d5976a4 (patch)
treee4ad5dd27930d12da133015f13216de547723c7f /devel/cmocka
parent4a4bc9a19614ca080a362c82cafa342cad5c79e5 (diff)
downloadpkgsrc-2b99e4279ee74f60cc9175af5628dcb20d5976a4.tar.gz
Pedantic format string logic requires void * arguments for %p.
Diffstat (limited to 'devel/cmocka')
-rw-r--r--devel/cmocka/distinfo3
-rw-r--r--devel/cmocka/patches/patch-.._src_cmocka.c31
2 files changed, 33 insertions, 1 deletions
diff --git a/devel/cmocka/distinfo b/devel/cmocka/distinfo
index b09c3ca3558..c3efb606602 100644
--- a/devel/cmocka/distinfo
+++ b/devel/cmocka/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/03/31 15:13:06 joerg Exp $
+$NetBSD: distinfo,v 1.3 2015/06/08 13:38:50 joerg Exp $
SHA1 (cmocka-1.0.0.tar.xz) = c1b6bdab164b2d54c26edacef9b9308e4de154f9
RMD160 (cmocka-1.0.0.tar.xz) = e8e79a9cd50aff9af814d0804066c92d53f1cc88
Size (cmocka-1.0.0.tar.xz) = 184016 bytes
SHA1 (patch-.._include_cmocka.h) = 3aefedc23752eb5cf0fe2b7b43018b7e006bc0e8
+SHA1 (patch-.._src_cmocka.c) = 6519ad5d17aa04289ce7d834d181a499f85ee7fc
diff --git a/devel/cmocka/patches/patch-.._src_cmocka.c b/devel/cmocka/patches/patch-.._src_cmocka.c
new file mode 100644
index 00000000000..a609d3cf59e
--- /dev/null
+++ b/devel/cmocka/patches/patch-.._src_cmocka.c
@@ -0,0 +1,31 @@
+$NetBSD: patch-.._src_cmocka.c,v 1.1 2015/06/08 13:38:50 joerg Exp $
+
+--- ../src/cmocka.c.orig 2015-06-08 12:54:44.000000000 +0000
++++ ../src/cmocka.c
+@@ -960,7 +960,7 @@ static int memory_equal_display_error(co
+ }
+ if (differences) {
+ cm_print_error("%d bytes of %p and %p differ\n", differences,
+- a, b);
++ (const void *)a, (const void *)b);
+ return 0;
+ }
+ return 1;
+@@ -985,7 +985,7 @@ static int memory_not_equal_display_erro
+ }
+ if (same == size) {
+ cm_print_error("%"PRIdS "bytes of %p and %p the same\n", same,
+- a, b);
++ (const void *)a, (const void *)b);
+ return 0;
+ }
+ return 1;
+@@ -1646,7 +1646,7 @@ void _test_free(void* const ptr, const c
+ file, line,
+ ptr, (unsigned long)block_info->size,
+ block_info->location.file, block_info->location.line,
+- &guard[j]);
++ (const void *)&guard[j]);
+ _fail(file, line);
+ }
+ }