add several noreturn statements

Found with clang's -Wmissing-noreturn

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-04-04 19:07:08 -07:00
committed by ridiculousfish
parent 202fe39d34
commit ca57bcbb00
3 changed files with 5 additions and 2 deletions

View File

@@ -1178,7 +1178,7 @@ class universal_notifier_shmem_poller_t : public universal_notifier_t {
}
#else // this class isn't valid on this system
public:
universal_notifier_shmem_poller_t() {
[[noreturn]] universal_notifier_shmem_poller_t() {
DIE("universal_notifier_shmem_poller_t cannot be used on this system");
}
#endif
@@ -1257,7 +1257,7 @@ class universal_notifier_notifyd_t : public universal_notifier_t {
}
#else // this class isn't valid on this system
public:
universal_notifier_notifyd_t() {
[[noreturn]] universal_notifier_notifyd_t() {
DIE("universal_notifier_notifyd_t cannot be used on this system");
}
#endif