⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 254563 in webkit


Ignore:
Timestamp:
Jan 15, 2020, 3:45:50 AM (7 years ago)
Author:
aboya@igalia.com
Message:

[WTF] Remove MediaTime.cpp test warning in GCC
​https://bugs.webkit.org/show_bug.cgi?id=206238

Reviewed by Xabier Rodriguez-Calvar.

GCC emits warnings when it finds clang pragmas, so I'm wrapping them
in #if COMPILER(CLANG) to reduce the noise.

  • TestWebKitAPI/Tests/WTF/MediaTime.cpp:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r254558 r254563  
     12020-01-15  Alicia Boya García  <aboya@igalia.com>
     2
     3        [WTF] Remove MediaTime.cpp test warning in GCC
     4        https://bugs.webkit.org/show_bug.cgi?id=206238
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        GCC emits warnings when it finds clang pragmas, so I'm wrapping them
     9        in #if COMPILER(CLANG) to reduce the noise.
     10
     11        * TestWebKitAPI/Tests/WTF/MediaTime.cpp:
     12
    1132020-01-14  Commit Queue  <commit-queue@webkit.org>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp

    r254509 r254563  
    5959// MediaTime values should be able to be declared static anywhere, just like you can do so with integers.
    6060// This should not require global constructors or destructors.
     61#if COMPILER(CLANG)
    6162#pragma clang diagnostic push
    6263#pragma clang diagnostic error "-Wglobal-constructors"
     64#endif
    6365static const MediaTime oneSecond(1, 1);
     66#if COMPILER(CLANG)
    6467#pragma clang diagnostic pop
     68#endif
    6569
    6670TEST(WTF, MediaTime)
Note: See TracChangeset for help on using the changeset viewer.