Changeset 167101 in webkit


Ignore:
Timestamp:
Apr 10, 2014 6:02:01 PM (10 years ago)
Author:
Brent Fulgham
Message:

[Win] Clean up some 64-bit warnings from Visual Studio analyzer
https://bugs.webkit.org/show_bug.cgi?id=131514

Reviewed by Tim Horton.

  • WTF.vcxproj/WTF.vcxproj: Use correct platform settings for

64-bit build.

  • config.h: Ditto.
  • wtf/CurrentTime.cpp:

(WTF::highResUpTime): Resolve warning about deprecated API.

  • wtf/StackBounds.cpp:

(WTF::StackBounds::initialize): Silence warning about
an uninitialized variable.

Location:
trunk/Source/WTF
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r167049 r167101  
     12014-04-10  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [Win] Clean up some 64-bit warnings from Visual Studio analyzer
     4        https://bugs.webkit.org/show_bug.cgi?id=131514
     5
     6        Reviewed by Tim Horton.
     7
     8        * WTF.vcxproj/WTF.vcxproj: Use correct platform settings for
     9        64-bit build.
     10        * config.h: Ditto.
     11        * wtf/CurrentTime.cpp:
     12        (WTF::highResUpTime): Resolve warning about deprecated API.
     13        * wtf/StackBounds.cpp:
     14        (WTF::StackBounds::initialize): Silence warning about
     15        an uninitialized variable.
     16
    1172014-04-09  Geoffrey Garen  <ggaren@apple.com>
    218
  • trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj

    r166506 r167101  
    480480      <StringPooling>
    481481      </StringPooling>
    482       <PreprocessorDefinitions>WIN32;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    483482    </ClCompile>
    484483    <Link>
     
    519518      <StringPooling>
    520519      </StringPooling>
    521       <PreprocessorDefinitions>WIN32;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    522520    </ClCompile>
    523521    <Link>
     
    636634      <StringPooling>
    637635      </StringPooling>
    638       <PreprocessorDefinitions>WIN32;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    639636    </ClCompile>
    640637    <Link>
     
    673670      <StringPooling>
    674671      </StringPooling>
    675       <PreprocessorDefinitions>WIN32;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    676672    </ClCompile>
    677673    <Link>
  • trunk/Source/WTF/config.h

    r166239 r167101  
    3030
    3131#ifndef _WIN32_WINNT
     32#if defined(_M_X64) || defined(__x86_64__)
     33#define _WIN32_WINNT 0x600
     34#else
    3235#define _WIN32_WINNT 0x0502
     36#endif
    3337#endif
    3438
    3539#ifndef WINVER
     40#if defined(_M_X64) || defined(__x86_64__)
     41#define WINVER 0x0600
     42#else
    3643#define WINVER 0x0502
     44#endif
    3745#endif
    3846
  • trunk/Source/WTF/wtf/CurrentTime.cpp

    r163288 r167101  
    107107    LARGE_INTEGER qpc;
    108108    QueryPerformanceCounter(&qpc);
     109#if defined(_M_IX86) || defined(__i386__)
    109110    DWORD tickCount = GetTickCount();
     111#else
     112    ULONGLONG tickCount = GetTickCount64();
     113#endif
    110114
    111115    if (inited) {
  • trunk/Source/WTF/wtf/StackBounds.cpp

    r161601 r167101  
    120120void StackBounds::initialize()
    121121{
    122     MEMORY_BASIC_INFORMATION stackOrigin;
     122    MEMORY_BASIC_INFORMATION stackOrigin = { 0 };
    123123    VirtualQuery(&stackOrigin, &stackOrigin, sizeof(stackOrigin));
    124124    // stackOrigin.AllocationBase points to the reserved stack memory base address.
Note: See TracChangeset for help on using the changeset viewer.