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

Cyril Hrubis chrubis@suse.cz
Mon Jun 20 11:21:44 CEST 2022


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



More information about the ltp mailing list