• darin@apple.com's avatar
    JavaScriptCore: · ba165bd3
    darin@apple.com authored
    2009-01-25  Darin Adler  <darin@apple.com>
    
            Reviewed by Sam Weinig.
    
            Bug 23352: Turn on more compiler warnings in the Mac build
            https://bugs.webkit.org/show_bug.cgi?id=23352
    
            Fourth patch: Deal with the last few stray warnings.
    
            * parser/Parser.cpp: Only declare jscyyparse if it's not already declared.
            This makes both separate compilation and all-in-one compilation work with the
            -Wredundant-decls warning.
    
    WebCore:
    
    2009-01-25  Darin Adler  <darin@apple.com>
    
            Reviewed by Sam Weinig.
    
            Bug 23352: Turn on more compiler warnings in the Mac build
            https://bugs.webkit.org/show_bug.cgi?id=23352
    
            Fourth patch: Deal with the last few stray warnings.
    
            * rendering/RenderBlock.cpp:
            (WebCore::RenderBlock::firstLineBlock): Handle the const_cast a little better.
            Also make the local variable be a RenderBlock so the cast is closer to the code
            that guarantees it's correct.
    
            * rendering/SVGRenderTreeAsText.cpp:
            (WebCore::writeStyle): Put the enum into a local variable that's a built-in
            type before using it with TextStream, so we don't get a warning due to -Wsign-promo.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@40231 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    ba165bd3
RenderBlock.cpp 188 KB