[LLVMbugs] [Bug 804] NEW: Warnings during building under Win32

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jun 8 03:01:15 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=804

           Summary: Warnings during building under Win32
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru


I'm constantly get the folowing warnings during build:

In file included from f:/tmp/llvm/build/../src/lib/System/Path.cpp:107:
f:/tmp/llvm/build/../src/lib/System/Win32/Path.inc: In static member function
`static llvm::sys::Path llvm::sys::Path::GetTemporaryDirectory()':
f:/tmp/llvm/build/../src/lib/System/Win32/Path.inc:124: warning: unsigned int
format, DWORD arg (arg 3)
f:/tmp/llvm/build/../src/lib/System/Win32/Path.inc: In member function `void
llvm::sys::Path::getStatusInfo(llvm::sys::Path::StatusInfo&) const':
f:/tmp/llvm/build/../src/lib/System/Win32/Path.inc:343: warning: left shift
count >= width of type

Today I've decided to look inside.

The first warning fixes easily just by casting DWORD to unsigned.
The second is much more hm...

Win32/Path.inc:343:
  info.fileSize = fi.nFileSizeHigh;
  info.fileSize <<= 32;
  info.fileSize += fi.nFileSizeLow;

info is StatusInfo, so fileSize is size_t, which is 32 bits here.

The main question: should this get fixed somehow or not?



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list