Changeset 140800 in webkit


Ignore:
Timestamp:
Jan 25, 2013 1:35:51 AM (11 years ago)
Author:
hans@chromium.org
Message:

Disable Clang's -Wreturn-type-c-linkage for Source/WebCore/bindings/v8/
https://bugs.webkit.org/show_bug.cgi?id=107845

Reviewed by Adam Barth.

A recent version of Clang started warning about code in
Source/WebCore/bindings/v8/npruntime.cpp.

In this case it is warning about an 'extern "c"' function returning a
non-POD type. But because the function has internal linkage, the
warning doesn't really apply.

This change suppresses the warning in the meantime.

Tested by building with Clang r172454.

  • WebCore.gyp/WebCore.gyp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140798 r140800  
     12013-01-24  Hans Wennborg  <hans@chromium.org>
     2
     3        Disable Clang's -Wreturn-type-c-linkage for Source/WebCore/bindings/v8/
     4        https://bugs.webkit.org/show_bug.cgi?id=107845
     5
     6        Reviewed by Adam Barth.
     7
     8        A recent version of Clang started warning about code in
     9        Source/WebCore/bindings/v8/npruntime.cpp.
     10
     11        In this case it is warning about an 'extern "c"' function returning a
     12        non-POD type. But because the function has internal linkage, the
     13        warning doesn't really apply.
     14
     15        This change suppresses the warning in the meantime.
     16
     17        Tested by building with Clang r172454.
     18
     19        * WebCore.gyp/WebCore.gyp:
     20
    1212013-01-25  Eberhard Graether  <egraether@google.com>
    222
  • trunk/Source/WebCore/WebCore.gyp/WebCore.gyp

    r140778 r140800  
    21582158          'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']]
    21592159        }],
     2160        ['clang==1', {
     2161          # FIXME: Remove once this warning has been tweaked in Clang.
     2162          'cflags': [
     2163            '-Wno-return-type-c-linkage',
     2164          ],
     2165          'xcode_settings': {
     2166            'WARNING_CFLAGS': [
     2167              '-Wno-return-type-c-linkage',
     2168            ],
     2169          }
     2170        }],
    21602171      ],
    21612172    },
Note: See TracChangeset for help on using the changeset viewer.