[Webkit-unassigned] [Bug 23115] New: Create a version of ASSERT for use with otherwise unused variables

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 5 01:51:25 PST 2009


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

           Summary: Create a version of ASSERT for use with otherwise unused
                    variables
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: P4
         Component: Web Template Framework
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ap at webkit.org


We have several ways to assert on otherwise unused variables, none of with is
elegant enough:
1) if (!expr) ASSERT_NOT_REACHED();
2) UNUSED_PARAM();
3)
#ifndef NDEBUG
int result =
#endif
    function();
ASSERT(!result)

Darin suggested adding a macro just for this purpose that would combine ASSERT
and UNUSED_PARAM.


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



More information about the webkit-unassigned mailing list