[LLVMbugs] [Bug 17014] -Wunsused_variable gives false positive for template constructor
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 27 12:55:06 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17014
David Blaikie <dblaikie at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dblaikie at gmail.com
Resolution|--- |WONTFIX
--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
This is considered an acceptable false positive given the true positives it
allows.
This code can be rewritten to avoid the warning. Replace this:
foo false_positive_unsused_variable(b,argc);
with this:
foo(b,argc);
Since you don't need the named variable (it has no work to do in its dtor) &
just want the ctor side effects.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130827/492841c7/attachment.html>
More information about the llvm-bugs
mailing list