summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2014-06-20 21:11:42 +0000
committerMarko Kreen2014-06-20 21:12:25 +0000
commitc90a410eccd75b3ebf50ee109fc3f9192e7e3855 (patch)
tree239ba86678cde3afceb269fb41e9ed179e85a2b9
parenteb29dec24d1c2a730cec9f804d9254bd53c67f94 (diff)
test/compile: disable unused func warning
-rw-r--r--test/compile.c4
1 files changed, 3 insertions, 1 deletions
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 <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);