From 8dcaefb52f81115d71e1dfa27d45f4a677bcbc09 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 28 Jun 2006 01:59:23 -0400 Subject: [PATCH] quote.c: silence compiler warnings from EMIT macro Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- quote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote.c b/quote.c index dcc232661..1910d000a 100644 --- a/quote.c +++ b/quote.c @@ -13,7 +13,7 @@ * a!b ==> a'\!'b ==> 'a'\!'b' */ #undef EMIT -#define EMIT(x) ( (++len < n) && (*bp++ = (x)) ) +#define EMIT(x) do { if (++len < n) *bp++ = (x); } while(0) static inline int need_bs_quote(char c) { -- 2.30.2