mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
test: mark the various abort functions as noreturn
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6752544e56
commit
f8c2eb0736
1 changed files with 3 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ litest_backtrace(void)
|
|||
#endif
|
||||
|
||||
LIBINPUT_ATTRIBUTE_PRINTF(5, 6)
|
||||
__attribute__((noreturn))
|
||||
void
|
||||
litest_fail_condition(const char *file,
|
||||
int line,
|
||||
|
|
@ -286,6 +287,7 @@ litest_fail_condition(const char *file,
|
|||
abort();
|
||||
}
|
||||
|
||||
__attribute__((noreturn))
|
||||
void
|
||||
litest_fail_comparison_int(const char *file,
|
||||
int line,
|
||||
|
|
@ -303,6 +305,7 @@ litest_fail_comparison_int(const char *file,
|
|||
abort();
|
||||
}
|
||||
|
||||
__attribute__((noreturn))
|
||||
void
|
||||
litest_fail_comparison_ptr(const char *file,
|
||||
int line,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue