From: Marko Kreen Date: Fri, 20 Jun 2014 21:11:42 +0000 (+0300) Subject: test/compile: disable unused func warning X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=c90a410eccd75b3ebf50ee109fc3f9192e7e3855;p=libusual.git test/compile: disable unused func warning --- 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);