diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2021-06-14 16:49:24 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2021-06-14 16:49:24 +0200 |
commit | 12d13cf50fe68c898ee65d71d1ba9cdb3ea07996 (patch) | |
tree | a4a763adb45e2e66846627d88d8bbdde15b75cc1 /gcc/c/c-parser.c | |
parent | 788bb7edb3975b80c4cb16323e7a5e55a2471e46 (diff) | |
download | gcc-12d13cf50fe68c898ee65d71d1ba9cdb3ea07996.zip gcc-12d13cf50fe68c898ee65d71d1ba9cdb3ea07996.tar.gz gcc-12d13cf50fe68c898ee65d71d1ba9cdb3ea07996.tar.bz2 |
C/C++: Fix unused set var warning with omp_clause_affinity [PR100913]
PR c/100913
gcc/c/ChangeLog:
* c-parser.c (c_parser_omp_clause_affinity): No need to set iterator
var in the error case.
gcc/cp/ChangeLog:
* parser.c (cp_parser_omp_clause_affinity): No need to set iterator
var in the error case.
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index add3353..b90710c 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -15596,9 +15596,7 @@ c_parser_omp_clause_affinity (c_parser *parser, tree list) if (iterators) { tree block = pop_scope (); - if (iterators == error_mark_node) - iterators = NULL_TREE; - else + if (iterators != error_mark_node) { TREE_VEC_ELT (iterators, 5) = block; for (tree c = nl; c != list; c = OMP_CLAUSE_CHAIN (c)) |