https://bugs.llvm.org/show_bug.cgi?id=43809
Bug ID: 43809
Summary: Missing unused variable and needless cast warning
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Given:
struct S
{
S(int value)
: m_value(value) {}
int m_value;
};
void foo() {
S x{S{10}};
S y{10};
}
When compiling with -Weverything, I would have expected:
- unused variable x (available)
- unused variable y (available only when making it constexpr)
- useless cast within x (missing)
--
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