mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-02 09:11:15 -03:00
add several noreturn statements
Found with clang's -Wmissing-noreturn Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
202fe39d34
commit
ca57bcbb00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user