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: unassignedb...@nondot.org
          Reporter: dcb...@hotmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to