public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100913] New: cppcheck: 2 * pointless new assignments in the parser ?
@ 2021-06-04 18:59 dcb314 at hotmail dot com
2021-06-10 14:41 ` [Bug c/100913] " marxin at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2021-06-04 18:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100913
Bug ID: 100913
Summary: cppcheck: 2 * pointless new assignments in the parser
?
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
1.
trunk.git/gcc/c/c-parser.c:15600:12: style: Variable 'iterators' is assigned a
value that is never used. [unreadVariable]
git blame says:
trunk.git/g9a5de4d5af1c gcc/c/c-parser.c (Tobias Burnus 2021-05-28
10:01:19 +0200 15600) iterators = NULL_TREE;
2.
gcc/cp/parser.c:37830:12: style: Variable 'iterators' is assigned a value that
is never used. [unreadVariable]
Possible duplicate.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/100913] cppcheck: 2 * pointless new assignments in the parser ?
2021-06-04 18:59 [Bug c/100913] New: cppcheck: 2 * pointless new assignments in the parser ? dcb314 at hotmail dot com
@ 2021-06-10 14:41 ` marxin at gcc dot gnu.org
2021-06-14 14:50 ` cvs-commit at gcc dot gnu.org
2021-06-14 14:57 ` burnus at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-10 14:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100913
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
@Tobias: Can you please take a look?
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/100913] cppcheck: 2 * pointless new assignments in the parser ?
2021-06-04 18:59 [Bug c/100913] New: cppcheck: 2 * pointless new assignments in the parser ? dcb314 at hotmail dot com
2021-06-10 14:41 ` [Bug c/100913] " marxin at gcc dot gnu.org
@ 2021-06-14 14:50 ` cvs-commit at gcc dot gnu.org
2021-06-14 14:57 ` burnus at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-14 14:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100913
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:
https://gcc.gnu.org/g:12d13cf50fe68c898ee65d71d1ba9cdb3ea07996
commit r12-1433-g12d13cf50fe68c898ee65d71d1ba9cdb3ea07996
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Mon Jun 14 16:49:24 2021 +0200
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/100913] cppcheck: 2 * pointless new assignments in the parser ?
2021-06-04 18:59 [Bug c/100913] New: cppcheck: 2 * pointless new assignments in the parser ? dcb314 at hotmail dot com
2021-06-10 14:41 ` [Bug c/100913] " marxin at gcc dot gnu.org
2021-06-14 14:50 ` cvs-commit at gcc dot gnu.org
@ 2021-06-14 14:57 ` burnus at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2021-06-14 14:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100913
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> ---
FIXED.
@David: Thanks for the report.
@Martin: Thanks for bisecting/assigning the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-06-14 14:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 18:59 [Bug c/100913] New: cppcheck: 2 * pointless new assignments in the parser ? dcb314 at hotmail dot com
2021-06-10 14:41 ` [Bug c/100913] " marxin at gcc dot gnu.org
2021-06-14 14:50 ` cvs-commit at gcc dot gnu.org
2021-06-14 14:57 ` burnus at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).