[Webkit-unassigned] [Bug 43412] New: Fix warning in WebCore/rendering/RenderBoxModelObject.cpp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 3 04:40:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43412

           Summary: Fix warning in
                    WebCore/rendering/RenderBoxModelObject.cpp
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P3
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ossy at webkit.org
                CC: mitz at webkit.org, bdakin at apple.com
            Blocks: 43191


gcc warning:
..\..\..\WebCore\rendering\RenderBoxModelObject.cpp: In member function 'void WebCore::RenderBoxModelObject::clipBorderSidePolygon(WebCore::GraphicsContext*, const WebCore::IntRect&, const WebCore::IntSize&, const WebCore::IntSize&, const WebCore::IntSize&, const WebCore::IntSize&, WebCore::BoxSide, bool, bool, const WebCore::RenderStyle*)':
..\..\..\WebCore\rendering\RenderBoxModelObject.cpp:1529:62: warning: operation on 'firstQuad[2]' may be undefined

This warning introduced in http://trac.webkit.org/changeset/63864 :

1528 firstQuad[2] = side == BSTop || side == BSBottom ? FloatPoint(quad[3].x(), quad[2].y())
1529            : firstQuad[2] = FloatPoint(quad[2].x(), quad[3].y());

Assignment in the false case of ternary condition is useless,
and evaluating of undefined firstQuad[2] cause this warning.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list