https://bugs.llvm.org/show_bug.cgi?id=45488
Bug ID: 45488
Summary: implement -Wunused-but-set-variable
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Clang doesn't warn on:
void foo(int x) {
int a = 0;
if (x)
a = 1;
}
GCC warns with -Wunused-but-set-variable:
warning: variable 'a' set but not used [-Wunused-but-set-variable]
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs