[Webkit-unassigned] [Bug 129220] New: Remove some unreachable code (-Wunreachable-code)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 22 16:54:13 PST 2014


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

           Summary: Remove some unreachable code (-Wunreachable-code)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: sam at webkit.org


Remove some straightforward cases of unreachable code. I believe these are all break statements that have a return, goto, or another break immediately preceding them.

It may not be possible to enable -Wunreachable-code by default. There are many places where we have code after CRASH() / NO_RETURN functions, return values after switches that return for all possible values, code that compiles differently on 32/64bit that statically eliminate branches (if sizeof(...)), debug only code enabled/disabled by static booleans that are false, and more. I did file some bugs on real cases of unreachable code that this caught; nothing significant.

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