[PATCH] D121715: [Clang] Fix an unused-but-set-variable warning with volatile variable
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 11:41:56 PDT 2022
xbolva00 added a comment.
void test() {
int j = 0;
for (int i = 0; i < 1000; i++)
j++;
return;
}
Should not we warn in this case? (Currently no warning)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121715/new/
https://reviews.llvm.org/D121715
More information about the cfe-commits
mailing list