[LTP] [PATCH 5/7] openposix: aio_h/2-1: Add return at the end of main()

Richard Palethorpe rpalethorpe@suse.de
Tue Jul 5 07:24:43 CEST 2022


Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>

Cyril Hrubis <chrubis@suse.cz> writes:

> This is compile-only test so the return value is not actually used but
> that's not a reason not to fix warnings.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
>  .../open_posix_testsuite/conformance/definitions/aio_h/2-1.c    | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/testcases/open_posix_testsuite/conformance/definitions/aio_h/2-1.c b/testcases/open_posix_testsuite/conformance/definitions/aio_h/2-1.c
> index 39fb41d22..133b3a516 100644
> --- a/testcases/open_posix_testsuite/conformance/definitions/aio_h/2-1.c
> +++ b/testcases/open_posix_testsuite/conformance/definitions/aio_h/2-1.c
> @@ -25,4 +25,6 @@ int main(void)
>  	aiocb.aio_nbytes = 0;
>  	aiocb.aio_sigevent = sigevent;
>  	aiocb.aio_reqprio = -1;
> +
> +	return 0;
>  }
> -- 
> 2.35.1


-- 
Thank you,
Richard.


More information about the ltp mailing list