diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-06-21 07:20:21 +0200 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-06-21 07:20:21 +0200 |
commit | aa41e19ecc9692b3b839725383e3e7706d3042fb (patch) | |
tree | 7080680b71a15ba876c6f4c5e6c0ab8b8f56c987 | |
parent | 016612733da6f4e16428ec3f95dc5e19b932a0c5 (diff) |
use new C++ noreturn syntax
-rw-r--r-- | vespalib/src/vespa/vespalib/util/hdr_abort.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/util/hdr_abort.h b/vespalib/src/vespa/vespalib/util/hdr_abort.h index f6fbb8ffbb0..c2c24ada574 100644 --- a/vespalib/src/vespa/vespalib/util/hdr_abort.h +++ b/vespalib/src/vespa/vespalib/util/hdr_abort.h @@ -3,9 +3,10 @@ namespace vespalib { -extern void hdr_abort(const char *message, - const char *file, - unsigned int line) __attribute__((__noreturn__)); +[[noreturn]] extern void +hdr_abort(const char *message, + const char *file, + unsigned int line); #define HDR_ABORT(msg) \ (vespalib::hdr_abort(msg, __FILE__, __LINE__)) |