]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed compiler warning.
authorBart Van Assche <bvanassche@acm.org>
Wed, 12 Mar 2008 16:44:52 +0000 (16:44 +0000)
committerBart Van Assche <bvanassche@acm.org>
Wed, 12 Mar 2008 16:44:52 +0000 (16:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7647

memcheck/tests/oset_test.c

index 49b8000efc5b7be88540fd772fd4ff0bcce2d659..5b05258ed58f2446e7a4a3130322aeca4c3b1980 100644 (file)
@@ -370,7 +370,7 @@ void example2(void)
    // comparisons.
    OSet* oset = VG_(OSetGen_Create)(offsetof(Block, first),
                                     blockCmp,
-                                    malloc, free);
+                                    (void*)malloc, free);
 
    // Try some operations on an empty OSet to ensure they don't screw up.
    vg_assert( ! VG_(OSetGen_Contains)(oset, &v) );