[Webkit-unassigned] [Bug 172618] New: Bulding with GCC 7.1.x spews lots of “warning: this use of "defined" may not be portable [-Wexpansion-to-defined]“

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 25 16:06:49 PDT 2017


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

            Bug ID: 172618
           Summary: Bulding with GCC 7.1.x spews lots of “warning: this
                    use of "defined" may not be portable
                    [-Wexpansion-to-defined]“
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com
                CC: lforschler at apple.com

This happens for all the expansions of:

  - #if ENABLE(FOO)
  - #if PLATFORM(FOO)
  - #if CPU(FOO)
  - #if USE(FOO)
  - #if HAVE(FOO)
  - ...

For example:

  ../../Source/WTF/wtf/Platform.h:807:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
  #if (CPU(X86_64) || CPU(ARM64)) && HAVE(FAST_TLS)
     ^~~~~~~~~~~~~                          

It seems that the -Wexpansion-to-defined existed before in GCC, but the warning
is now enabled by default in version 7.1.x of the compiler. WebKit source code
makes extensive use of this kind of expansions, so probably it'd be better to
silence these warnings.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170525/55f56ee8/attachment.html>


More information about the webkit-unassigned mailing list