Changeset 185302 in webkit


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

Unifiy the definition of UNREACHABLE_FOR_PLATFORM
https://bugs.webkit.org/show_bug.cgi?id=145737

Reviewed by Anders Carlsson.

  • wtf/Assertions.h:

(UNREACHABLE_FOR_PLATFORM): Use the macro for clang as well. Its expansion includes
attribute((noreturn)) so the pragmas are unnecessary.

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r185273 r185302  
     12015-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
    1122015-06-05  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WTF/wtf/Assertions.h

    r185009 r185302  
    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"
    380 static inline void UNREACHABLE_FOR_PLATFORM()
    381 {
    382     RELEASE_ASSERT_NOT_REACHED();
    383 }
    384 #pragma clang diagnostic pop
    385 #else
    386375#define UNREACHABLE_FOR_PLATFORM() RELEASE_ASSERT_NOT_REACHED()
    387 #endif
    388 
    389376
    390377#endif /* WTF_Assertions_h */
Note: See TracChangeset for help on using the changeset viewer.