X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftal%2Ftest%2Frun-overflow.c;h=d1919c1cceefcc65702fd5bf65a2ef015c30f7d7;hb=a8722345053b7cd860499aa31fd6bb414c120cc8;hp=e68c0471b9d7e4c49ee7568786be9dc726354586;hpb=f0308b852cda745a74f5135971ad6c0747886df1;p=ccan diff --git a/ccan/tal/test/run-overflow.c b/ccan/tal/test/run-overflow.c index e68c0471..d1919c1c 100644 --- a/ccan/tal/test/run-overflow.c +++ b/ccan/tal/test/run-overflow.c @@ -4,7 +4,7 @@ static int error_count; -static void my_error(const char *msg) +static void my_error(const char *msg UNNEEDED) { error_count++; } @@ -48,7 +48,7 @@ int main(void) (size_t)-1UL / sizeof(int) / 2); ok1(!pi); ok1(error_count == 4); - ok1(tal_first(NULL) == origpi && !tal_next(NULL, origpi)); + ok1(tal_first(NULL) == origpi && !tal_next(origpi) && !tal_first(origpi)); tal_free(origpi); /* Now, check that with taltk() we free old one on failure. */