Changeset 185302 in webkit
- Timestamp:
- Jun 7, 2015, 10:35:12 AM (10 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r185273 r185302 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 1 12 2015-06-05 Chris Dumez <cdumez@apple.com> 2 13 -
trunk/Source/WTF/wtf/Assertions.h
r185009 r185302 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 around377 // a function. Hence it uses macro naming convention.378 #pragma clang diagnostic push379 #pragma clang diagnostic ignored "-Wmissing-noreturn"380 static inline void UNREACHABLE_FOR_PLATFORM()381 {382 RELEASE_ASSERT_NOT_REACHED();383 }384 #pragma clang diagnostic pop385 #else386 375 #define UNREACHABLE_FOR_PLATFORM() RELEASE_ASSERT_NOT_REACHED() 387 #endif388 389 376 390 377 #endif /* WTF_Assertions_h */
Note:
See TracChangeset
for help on using the changeset viewer.