Hi,
this patch removes a semicolon after "do {} while (0)" in BUF_APPEND.
This allows the macro to be used in if-then-elses without curly braces.
Committed as obvious.
Thanks,
- Tom
2017-11-02 Tom de Vries <t...@codesourcery.com>
PR other/82784
* lex.c (BUF_APPEND): Remove semicolon after
"do {} while (0)".
Signed-off-by: Tom de Vries <t...@codesourcery.com>
---
libcpp/lex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 40ff801..9164a07 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -1647,7 +1647,7 @@ lex_raw_string (cpp_reader *pfile, cpp_token *token, const uchar *base,
(const uchar *)(STR), (LEN)); \
temp_buffer_len += (LEN); \
} \
- } while (0);
+ } while (0)
orig_base = base;
++cur;