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: unassignedclangb...@nondot.org
Reporter: l...@alex.lanin.de
CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk
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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs