[Ohrrpgce] SVN: teeemcee/8147 Fix compiling with clang 4+: clang doesn't accept C++11 [[noreturn]] in

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Fri Sep 9 09:41:58 PDT 2016


teeemcee
2016-09-09 09:41:57 -0700 (Fri, 09 Sep 2016)
336
Fix compiling with clang 4+: clang doesn't accept C++11 [[noreturn]] in C code.

Actually, [[noreturn]] doesn't work on function pointer typedefs anyway
(although C11's _Noreturn does work), so stick to GCC-style
__attribute__((noreturn)). We can use __has_attribute to test for this
(early clang doesn't have it), which is far cleaner.
---
U   wip/common.h


More information about the Ohrrpgce mailing list