• R/O
  • SSH

posixpp: 提交

The main posixpp library and associated tests.


Commit MetaInfo

修订版65d4804a6639ac5e08d7518a7b7dc4b760dbe431 (tree)
时间2022-01-11 03:41:44
作者Eric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Silence "return from norreturn" warnings.

更改概述

差异

diff -r 0985bb9e2c34 -r 65d4804a6639 pubincludes/syscalls/linux/basic.h
--- a/pubincludes/syscalls/linux/basic.h Mon Jan 10 10:40:46 2022 -0800
+++ b/pubincludes/syscalls/linux/basic.h Mon Jan 10 10:41:44 2022 -0800
@@ -10,10 +10,12 @@
1010
1111 inline void exit [[noreturn]](int status) noexcept {
1212 syscall_expected(call_id::exit, status);
13+ __builtin_unreachable();
1314 }
1415
1516 inline void exit_group [[noreturn]](int status) noexcept {
1617 syscall_expected(call_id::exit_group, status);
18+ __builtin_unreachable();
1719 }
1820
1921 } // namespace linux
Show on old repository browser