Changeset 185303 in webkit


Ignore:
Timestamp:
Jun 7, 2015, 10:37:37 AM (10 years ago)
Author:
mitz@apple.com
Message:

Reverted r185302 because it broke the build

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r185302 r185303  
    1 2015-06-07  Dan Bernstein  <mitz@apple.com>
    2 
    3         Unifiy the definition of UNREACHABLE_FOR_PLATFORM
    4         https://bugs.webkit.org/show_bug.cgi?id=145737
    5 
    6         Reviewed by Anders Carlsson.
    7 
    8         * wtf/Assertions.h:
    9         (UNREACHABLE_FOR_PLATFORM): Use the macro for clang as well. Its expansion includes
    10         __attribute((__noreturn__)) so the pragmas are unnecessary.
    11 
    1212015-06-05  Chris Dumez  <cdumez@apple.com>
    132
  • trunk/Source/WTF/wtf/Assertions.h

    r185302 r185303  
    373373/* UNREACHABLE_FOR_PLATFORM */
    374374
     375#if COMPILER(CLANG)
     376// This would be a macro except that its use of #pragma works best around
     377// a function. Hence it uses macro naming convention.
     378#pragma clang diagnostic push
     379#pragma clang diagnostic ignored "-Wmissing-noreturn"
     380static inline void UNREACHABLE_FOR_PLATFORM()
     381{
     382    RELEASE_ASSERT_NOT_REACHED();
     383}
     384#pragma clang diagnostic pop
     385#else
    375386#define UNREACHABLE_FOR_PLATFORM() RELEASE_ASSERT_NOT_REACHED()
     387#endif
     388
    376389
    377390#endif /* WTF_Assertions_h */
Note: See TracChangeset for help on using the changeset viewer.