JavaScriptCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jan 2009 18:25:30 +0000 (18:25 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jan 2009 18:25:30 +0000 (18:25 +0000)
commit56676b833543332f62dd7cfcfeb7d5c2acc6f743
tree9001f4f2bf33f036876a75a6002689463d599cb8
parent436f645d9795b7e18ca1ecd0582e49cabc619294
JavaScriptCore:

2009-01-20  Darin Adler  <darin@apple.com>

        Reviewed by Mark Rowe.

        Bug 23352: Turn on more compiler warnings in the Mac build
        https://bugs.webkit.org/show_bug.cgi?id=23352

        First patch: Fix some simple cases of various warnings.

        * pcre/pcre_compile.cpp:
        (jsRegExpCompile): Use const_cast to change const-ness.

        * runtime/StringPrototype.cpp:
        (JSC::substituteBackreferences): Remove unneeded initialization and
        use UChar instead of unsigned short for UTF-16 values.

        * wtf/dtoa.cpp:
        (WTF::strtod): Use const_cast to change const-ness.

WebCore:

2009-01-20  Darin Adler  <darin@apple.com>

        Reviewed by Mark Rowe.

        Bug 23352: Turn on more compiler warnings in the Mac build
        https://bugs.webkit.org/show_bug.cgi?id=23352

        First patch: Fix some simple cases of various warnings.

        * platform/DeprecatedPtrListImpl.cpp:
        (WebCore::DeprecatedPtrListImpl::insert): Use const_cast to change const-ness.
        * platform/graphics/mac/SimpleFontDataMac.mm:
        (WebCore::SimpleFontData::containsCharacters): Ditto.

        * platform/text/PlatformString.h: Overload for short and unsigned short to avoid
        ambiguity leading to warnings.
        * platform/text/String.cpp:
        (WebCore::String::number): Implemented overloads.

        * platform/text/TextStream.cpp:
        (WebCore::TextStream::operator<<): Overload for bool to avoid ambiguity leading
        to warnings.
        * platform/text/TextStream.h: Ditto.

        * rendering/InlineFlowBox.h: Fix declaration that was specifying the wrong type.

        * svg/graphics/filters/cg/WKLinearTransferFilter.m: Fix stray characters after
        #endif that should be a comment instead.
        * svg/graphics/filters/cg/WKSpecularLightingFilter.h: Ditto.

        * xml/XPathPath.h: Remove unneeded redundant declaration.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/pcre/pcre_compile.cpp
JavaScriptCore/runtime/StringPrototype.cpp
JavaScriptCore/wtf/dtoa.cpp
WebCore/ChangeLog
WebCore/platform/DeprecatedPtrListImpl.cpp
WebCore/platform/graphics/mac/SimpleFontDataMac.mm
WebCore/platform/text/PlatformString.h
WebCore/platform/text/String.cpp
WebCore/platform/text/TextStream.cpp
WebCore/platform/text/TextStream.h
WebCore/rendering/InlineFlowBox.h
WebCore/svg/graphics/filters/cg/WKLinearTransferFilter.m
WebCore/svg/graphics/filters/cg/WKSpecularLightingFilter.h
WebCore/xml/XPathPath.h