git.samba.org
/
obnox
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0713f9f
)
examples: Fix warnings of key_value_test.
author
Andreas Schneider
<asn@cryptomilk.org>
Mon, 25 Jun 2012 13:21:08 +0000
(15:21 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 25 Jun 2012 13:45:02 +0000
(15:45 +0200)
src/example/key_value_test.c
patch
|
blob
|
history
diff --git
a/src/example/key_value_test.c
b/src/example/key_value_test.c
index f2e6cf20cf3582f89673cf20bd682dfafcc1245b..da72ea21f24004d5c3a98aaf4fa69a15b49c1fdf 100644
(file)
--- a/
src/example/key_value_test.c
+++ b/
src/example/key_value_test.c
@@
-42,6
+42,9
@@
static void destroy_key_values(void **state) {
static void test_find_item_by_value(void **state) {
unsigned int i;
+
+ (void) state; /* unused */
+
for (i = 0; i < sizeof(key_values) / sizeof(key_values[0]); i++) {
KeyValue * const found = find_item_by_value(key_values[i].value);
assert_true(found != NULL);