[Webkit-unassigned] [Bug 98015] New: Check that __cplusplus is defined before comparing its value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 1 04:27:45 PDT 2012


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

           Summary: Check that __cplusplus is defined before comparing its
                    value
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Trivial
          Priority: P2
         Component: Web Template Framework
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: agarcia at igalia.com
                CC: mrobinson at webkit.org


There's this condition in WTF/wtf/Compiler.h:

#if GCC_VERSION_AT_LEAST(4, 7, 0) && __cplusplus >= 201103L

If __cplusplus is not defined is interpreted as having the value 0,
but it produces a compilation warning with -Wundef.

This is the case with some API tests that are written in C (JSNode.c,
JSNodeList.c, minidom.c).

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