diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-11-05 09:58:16 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-11-05 09:58:16 +0000 |
commit | c830c7d5c738a21dc6d8021ce28955590361264e (patch) | |
tree | 7041681d22ace5473c15779cbed6688f683f3ed0 /libcpp | |
parent | 9739c3d303bcf12aaa762062c1352717260f5ccb (diff) | |
download | gcc-c830c7d5c738a21dc6d8021ce28955590361264e.zip gcc-c830c7d5c738a21dc6d8021ce28955590361264e.tar.gz gcc-c830c7d5c738a21dc6d8021ce28955590361264e.tar.bz2 |
[libcpp] Remove semicolon after do {} while (0) in BUF_APPEND
2017-11-05 Tom de Vries <tom@codesourcery.com>
PR other/82784
* lex.c (BUF_APPEND): Remove semicolon after
"do {} while (0)".
From-SVN: r254424
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 6 | ||||
-rw-r--r-- | libcpp/lex.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 39e12bd..285f414 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2017-11-05 Tom de Vries <tom@codesourcery.com> + + PR other/82784 + * lex.c (BUF_APPEND): Remove semicolon after + "do {} while (0)". + 2017-10-31 David Malcolm <dmalcolm@redhat.com> * directives.c (_cpp_handle_directive): Update for renaming of 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; |