Message ID | a356f07d-c929-a712-fb70-21bad5c7bf25@mentor.com |
---|---|
State | New |
Headers | show |
Series | [1/7,libsanitizer,committed] Remove semicolon after do {} while (0) in macro body | expand |
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;
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 <tom@codesourcery.com> PR other/82784 * lex.c (BUF_APPEND): Remove semicolon after "do {} while (0)". Signed-off-by: Tom de Vries <tom@codesourcery.com> --- libcpp/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)