mirror of
https://github.com/git-for-windows/git.git
synced 2025-12-14 10:37:53 -06:00
quote.c: silence compiler warnings from EMIT macro
Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
8096fae726
commit
8dcaefb52f
2
quote.c
2
quote.c
@ -13,7 +13,7 @@
|
|||||||
* a!b ==> a'\!'b ==> 'a'\!'b'
|
* a!b ==> a'\!'b ==> 'a'\!'b'
|
||||||
*/
|
*/
|
||||||
#undef EMIT
|
#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)
|
static inline int need_bs_quote(char c)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user