[llvm-bugs] [Bug 31528] New: llvm/lib/Support/NativeFormatting.cpp:244: local variable 'Len' set but not used ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 4 01:01:53 PST 2017
https://llvm.org/bugs/show_bug.cgi?id=31528
Bug ID: 31528
Summary: llvm/lib/Support/NativeFormatting.cpp:244: local
variable 'Len' set but not used ?
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: dcb314 at hotmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
llvm/lib/Support/NativeFormatting.cpp:244]: (style) Variable 'Len' is modified
but its new value is never used.
Source code is
unsigned Len;
Len = format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
if (Style == FloatStyle::Percent)
++Len;
S << Buf;
if (Style == FloatStyle::Percent)
S << '%';
}
I am not sure if local variable 'Len' needs to be used in some
way, or can be safely deleted.
--
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/20170104/700ee1db/attachment.html>
More information about the llvm-bugs
mailing list