Skip to content
  • andersca@apple.com's avatar
    Fix build with newer versions of clang. · 43578ad3
    andersca@apple.com authored
    Source/WebCore:
    
    * bindings/objc/DOM.mm:
    (-[DOMNode description]):
    Remove an unused parameter.
    
    * bridge/objc/objc_instance.mm:
    (ObjcInstance::getClass):
    Use object_getClass instead of accessing isa directly.
    
    * platform/LocalizedStrings.cpp:
    (WebCore::formatLocalizedString):
    Disable the -Wformat-nonliteral warning around the call to CFStringCreateWithFormatAndArguments.
    
    * platform/graphics/mac/WebLayer.mm:
    (-[CALayer _descriptionWithPrefix:]):
    Use %p for the CALayer pointer, and use %lu for the number of sublayers.
    
    * platform/mac/HTMLConverter.mm:
    (-[WebHTMLConverter _addAttachmentForElement:URL:needsParagraph:usePlaceholder:]):
    Cast the NSAttachmentCharacte enum to unichar.
    
    Source/WebKit/mac:
    
    * Panels/WebAuthenticationPanel.m:
    (-[WebAuthenticationPanel setUpForChallenge:]):
    Use %ld and cast to long.
    
    * Plugins/WebNetscapePluginView.mm:
    (-[WebNetscapePluginView getVariable:value:]):
    Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
    
    Source/WebKit2:
    
    * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
    (WebKit::NPN_GetValue):
    Cast the switch parameter to unsigned to prevent warnings about case values not being part of the enum type.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    43578ad3