Skip to content
  • commit-queue@webkit.org's avatar
    Fix build warnings : -Wunused-parameter, -Wparentheses, -Wuninitialized. · 378318b1
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=97306
    
    Patch by Byungwoo Lee <bw80.lee@gmail.com> on 2012-09-23
    Reviewed by Benjamin Poulain.
    
    Source/JavaScriptCore:
    
    Fix build warning about -Wunused-parameter on MachineStackMarker.cpp,
    LLIntSlowPaths.cpp, DatePrototype.cpp, Options.cpp by using
    UNUSED_PARAM() macro or remove parameter name.
    
    * heap/MachineStackMarker.cpp:
    (JSC::pthreadSignalHandlerSuspendResume):
    * llint/LLIntSlowPaths.cpp:
    (JSC::LLInt::entryOSR):
    * runtime/DatePrototype.cpp:
    (JSC::formatLocaleDate):
    * runtime/Options.cpp:
    (JSC::computeNumberOfGCMarkers):
    
    Source/WebCore:
    
    Fix build warning about -Wunused-parameter on ImageBufferCairo.cpp,
    ImageDecoder.h by using ASSERT_UNUSED() macro.
    
    * platform/graphics/cairo/ImageBufferCairo.cpp:
    (WebCore::encodeImage):
    * platform/image-decoders/ImageDecoder.h:
    (WebCore::ImageDecoder::rgbColorProfile):
    (WebCore::ImageDecoder::inputDeviceColorProfile):
    
    Source/WebKit/efl:
    
    Fix build warning about -Wunused-parameter on FrameLoaderClientEfl.cpp
    by using ASSERT_UNUSED() macro.
    Fix build warning aboug -Wparentheses on ewk_frame.cpp by adding
    additional brace for the assign statement.
    
    * WebCoreSupport/FrameLoaderClientEfl.cpp:
    (WebCore::FrameLoaderClientEfl::dispatchDidChangeIcons):
    * ewk/ewk_frame.cpp:
    (ewk_frame_resources_location_get):
    
    Source/WebKit2:
    
    Fix build warning about -Wunused-parameter on Connection.cpp,
    WKEinaSharedString.cpp, ewk_view_loader_client.cpp, WebPage.cpp by
    using ASSERT_UNUSED() macro or removing parameter name.
    Fix build warning about -Wuninitialized on WebEventFactory.cpp by
    continueing the loop at the default switch case not to use the
    uninitialized variable.
    
    * Platform/CoreIPC/Connection.cpp:
    (CoreIPC::Connection::waitForSyncReply):
    * Shared/efl/WebEventFactory.cpp:
    (WebKit::WebEventFactory::createWebTouchEvent):
    * UIProcess/API/cpp/efl/WKEinaSharedString.cpp:
    (WKEinaSharedString::WKEinaSharedString):
    * UIProcess/API/efl/ewk_view_loader_client.cpp:
    (didSameDocumentNavigationForFrame):
    * WebProcess/WebPage/WebPage.cpp:
    (WebKit::WebPage::SandboxExtensionTracker::beginLoad):
    
    Source/WTF:
    
    Fix build warning about -Wunused-parameter on FastMalloc.cpp,
    OSAllocatorPosix.cpp by using UNUSED_PARAM() macro.
    Fix header including order of FastMalloc.cpp.
    
    * wtf/FastMalloc.cpp:
    (WTF::fastMallocSize):
    * wtf/OSAllocatorPosix.cpp:
    (WTF::OSAllocator::reserveAndCommit):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    378318b1