[PATCH] D122271: [Clang] -Wunused-but-set-variable warning - handle also pre/post unary operators
Mikael Holmén via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 28 22:07:48 PDT 2022
uabelho added a comment.
Hi,
I noticed these to warning when compiling libunwind/src/UnwindLevel1.c with this patch:
00:22:48 /repo/bbiswjenk/fem2s10-eiffel176/workspace/llvm/sdk_1_20_ki_dev_test/libunwind/src/UnwindLevel1.c:175:12: warning: variable 'framesWalked' set but not used [-Wunused-but-set-variable]
00:22:48 unsigned framesWalked = 1;
00:22:48 ^
00:22:48 /repo/bbiswjenk/fem2s10-eiffel176/workspace/llvm/sdk_1_20_ki_dev_test/libunwind/src/UnwindLevel1.c:293:12: warning: variable 'framesWalked' set but not used [-Wunused-but-set-variable]
00:22:48 unsigned framesWalked = 1;
00:22:48 ^
00:22:48 2 warnings generated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122271/new/
https://reviews.llvm.org/D122271
More information about the cfe-commits
mailing list