Since D100581, Clang started flagging this variable which is set but
never read. Based on comparing this function with __match_at_start_posix_nosubs
(which is very similar), I am pretty confident that __j was simply left
behind as an oversight in Howard's 6afe8b0a2336.
Details
Details
- Reviewers
• Quuxplusone - Group Reviewers
Restricted Project - Commits
- rG2cf78d4ead4a: [libc++] Remove unused variable warnings
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Remove j instead of silencing the error -- after some research, I think j was left behind as an oversight.
libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp | ||
---|---|---|
187–188 ↗ | (On Diff #349363) | Well, that's not going to work. ;) |
207–208 ↗ | (On Diff #349363) | Shouldn't you just comment these lines back in, so that the variables end up getting used/tested? |
libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp | ||
---|---|---|
207–208 ↗ | (On Diff #349363) | I tested with ubsan enabled and I'm not seeing any issue. |