From 342a570db52c143676174a2096afd3210bd98a0a Mon Sep 17 00:00:00 2001 From: Cindy Liu Date: Fri, 4 Aug 2023 12:47:42 -0700 Subject: [PATCH] Fix emitter GCC warning This should fix https://github.com/yaml/libyaml/issues/210 --- src/emitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emitter.c b/src/emitter.c index 609b28a4..076bcc1a 100644 --- a/src/emitter.c +++ b/src/emitter.c @@ -53,7 +53,7 @@ #define WRITE_BREAK(emitter,string) \ (FLUSH(emitter) \ && (CHECK(string,'\n') ? \ - (PUT_BREAK(emitter), \ + ((void)PUT_BREAK(emitter), \ string.pointer ++, \ 1) : \ (COPY(emitter->buffer,string), \