[Webkit-unassigned] [Bug 136599] New: New clang warns about boolean checks for |this| pointer in RenderObject debug methods

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 6 04:52:48 PDT 2014


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

           Summary: New clang warns about boolean checks for |this|
                    pointer in RenderObject debug methods
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ddkilzer at webkit.org
                CC: hyatt at apple.com, zalan at apple.com,
                    simon.fraser at apple.com


New builds of clang warn about boolean checks for the |this| pointer being undefined behavior:

Source/WebCore/rendering/RenderObject.cpp:1465:10: error: 'this' pointer cannot be null in wel
l-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]
    if (!this) {
        ~^~~~
Source/WebCore/rendering/RenderObject.cpp:1584:10: error: 'this' pointer cannot be null in wel
l-defined C++ code; pointer may be assumed to always convert to true [-Werror,-Wundefined-bool-conversion]
    if (!this)
        ~^~~~
2 errors generated.

-- 
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