From 66e21520f369ab92b49a515704b68fa842face85 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 28 Nov 2019 16:02:13 +0100 Subject: curl_setup_once: consistently use WHILE_FALSE in macros The WHILE_FALSE construction is used to avoid compiler warnings in macro constructions. This fixes a few instances where it was not used in order to keep the code consistent. Closes #4649 Reviewed-by: Daniel Stenberg --- lib/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/cookie.c') diff --git a/lib/cookie.c b/lib/cookie.c index f56bd85a9..7e68b0785 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -1226,7 +1226,7 @@ static int cookie_sort_ct(const void *p1, const void *p2) if(!d->field) \ goto fail; \ } \ - } while(0) + } WHILE_FALSE static struct Cookie *dup_cookie(struct Cookie *src) { -- cgit v1.2.1