]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/test/run-notifier.c
tal: make tal_len/tal_count(NULL) return 0.
[ccan] / ccan / tal / test / run-notifier.c
index f085b8255852bcf29f3ba56e0f32646853aac29a..3820444f86f8245c38ffb9817f8d6cb38de506d1 100644 (file)
@@ -20,7 +20,7 @@ static void *my_realloc(void *old, size_t size)
        return new;
 }
 
-static void notify1(char *p, enum tal_notify_type notify, void *info)
+static void notify1(char *p UNNEEDED, enum tal_notify_type notify, void *info)
 {
        ok1(ctx == ctx);
        ok1(notify == expect);
@@ -31,7 +31,9 @@ static void notify1(char *p, enum tal_notify_type notify, void *info)
        notified1++;
 }
 
-static void notify2(char *ctx, enum tal_notify_type notify, void *info)
+static void notify2(char *ctx UNNEEDED,
+                   enum tal_notify_type notify UNNEEDED,
+                   void *info UNNEEDED)
 {
        notified2++;
 }
@@ -126,5 +128,6 @@ int main(void)
        tal_del_notifier(new_ctx, resize_notifier);
        tal_free(new_ctx);
 
+       tal_cleanup();
        return exit_status();
 }