From c90a410eccd75b3ebf50ee109fc3f9192e7e3855 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Sat, 21 Jun 2014 00:11:42 +0300 Subject: [PATCH] test/compile: disable unused func warning --- test/compile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/compile.c b/test/compile.c index f9bfabd..4e6b24e 100644 --- a/test/compile.c +++ b/test/compile.c @@ -26,7 +26,7 @@ #include #include -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); -- 2.39.5