[LTP] [PATCH] Annotate tst_brk with noreturn

Cyril Hrubis chrubis@suse.cz
Wed Nov 25 12:09:50 CET 2020


Hi!
> Prevents compiler warnings when tst_brk is placed at the end of a
> non-void function's control flow. Indeed tst_brk never returns control
> to the caller.

It actually does, in a case of SAFE_MACROS() called from test cleanup().

Which is the reason we cannot annotate the function because if we do so
the compiler will not include the function epilog and tests would crash
in a case that something went wrong in a cleanup().

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list