test/compile: disable unused func warning
authorMarko Kreen <[email protected]>
Fri, 20 Jun 2014 21:11:42 +0000 (00:11 +0300)
committerMarko Kreen <[email protected]>
Fri, 20 Jun 2014 21:12:25 +0000 (00:12 +0300)
test/compile.c

index f9bfabdabfc6178af6485b241d6a17170ddc0cdb..4e6b24ef759028838c42793c066a6e28f7b9cb10 100644 (file)
@@ -26,7 +26,7 @@
 #include <usual/time.h>
 #include <usual/utf8.h>
 
-static inline bool heap_is_better(const void *a, const void *b)
+static bool heap_is_better(const void *a, const void *b)
 {
        return 1;
 }
@@ -36,10 +36,12 @@ int main(void)
        struct AATree aatree;
        struct CBTree *cbtree;
        struct md5_ctx md5;
+       struct Heap *heap;
        char buf[128];
 
        static_assert(sizeof(int) >= 4, "unsupported int size");
 
+       heap = heap_create(heap_is_better, NULL, NULL);
        aatree_init(&aatree, NULL, NULL);
        cbtree = cbtree_create(NULL, NULL, NULL, NULL);
        cbtree_destroy(cbtree);