examples: Fix warnings of key_value_test.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 25 Jun 2012 13:21:08 +0000 (15:21 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 25 Jun 2012 13:45:02 +0000 (15:45 +0200)
src/example/key_value_test.c

index f2e6cf20cf3582f89673cf20bd682dfafcc1245b..da72ea21f24004d5c3a98aaf4fa69a15b49c1fdf 100644 (file)
@@ -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);