From af8d28014f97ab0d9e4d00961e72aefd7adb470b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 27 Mar 2012 12:14:56 +0200 Subject: Fix broken hashmap behavior * We were relying on undefined gcc behavior related to the & operator. * This would show up as a test failure when running with -O2 on certain GCC versions, as well as failure on clang 3.1 --- tests/hash-test.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests') diff --git a/tests/hash-test.c b/tests/hash-test.c index 876088b..530c67c 100644 --- a/tests/hash-test.c +++ b/tests/hash-test.c @@ -171,8 +171,6 @@ test_set_clear (CuTest *tc) map = _p11_hash_create (_p11_hash_direct_hash, _p11_hash_direct_equal, NULL, NULL); - fprintf (stderr, "%p setting\n", value); - if (!_p11_hash_set (map, key, value)) CuFail (tc, "should not be reached"); -- cgit v1.1