Changeset 46648 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Jul 31, 2009, 5:50:10 PM (16 years ago)
Author:
[email protected]
Message:

Fixes the Windows release-PGO build.

Reviewed by Jon Honeycutt.

  • JavaScriptCore.vcproj/WTF/WTF.vcproj: Suppresses the warning about unreachable code that we get by adding "return 0" to WTF::TCMalloc_PageHeap::runScavengerThread().
  • wtf/FastMalloc.cpp: (WTF::TCMalloc_PageHeap::runScavengerThread): Fixes the error about the method not returning a value in the release-PGO build.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r46511 r46648  
    14171417void* TCMalloc_PageHeap::runScavengerThread(void* context)
    14181418{
    1419   reinterpret_cast<TCMalloc_PageHeap*>(context)->scavengerThread();
     1419  static_cast<TCMalloc_PageHeap*>(context)->scavengerThread();
     1420#if COMPILER(MSVC)
     1421  // Without this, Visual Studio will complain that this method does not return a value.
     1422  return 0;
     1423#endif
    14201424}
    14211425
Note: See TracChangeset for help on using the changeset viewer.