[cfe-commits] [patch][pr11550] Extend the unused variable warning
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Sat Dec 24 18:13:46 PST 2011
The attached patch extends clang's warning for unused variables to cover
cases where the variable type has a constructor, but it is not used. For
example:
struct S {
S();
};
S foo();
void bar() {
S x = foo(); // expected-warning {{unused variable 'x'}}
}
I have tested the patch in clang itself and I am now testing it on
firefox. Is the patch OK if there are no false positives in the firefox
build?
Cheers,
Rafael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr11550.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111224/701137ce/attachment.ksh>
More information about the cfe-commits
mailing list