Changeset 185303 in webkit
- Timestamp:
- Jun 7, 2015, 10:37:37 AM (10 years ago)
- 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_PLATFORM4 https://bugs.webkit.org/show_bug.cgi?id=1457375 6 Reviewed by Anders Carlsson.7 8 * wtf/Assertions.h:9 (UNREACHABLE_FOR_PLATFORM): Use the macro for clang as well. Its expansion includes10 __attribute((__noreturn__)) so the pragmas are unnecessary.11 12 1 2015-06-05 Chris Dumez <cdumez@apple.com> 13 2 -
trunk/Source/WTF/wtf/Assertions.h
r185302 r185303 373 373 /* UNREACHABLE_FOR_PLATFORM */ 374 374 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 375 386 #define UNREACHABLE_FOR_PLATFORM() RELEASE_ASSERT_NOT_REACHED() 387 #endif 388 376 389 377 390 #endif /* WTF_Assertions_h */
Note:
See TracChangeset
for help on using the changeset viewer.