diff mbox series

[6/7] openposix: mq_timedreceive: Silence warning

Message ID 20220620092146.7604-7-chrubis@suse.cz
State Accepted
Headers show
Series openposix: Fix 'no return in nonvoid function' warnings | expand

Commit Message

Cyril Hrubis June 20, 2022, 9:21 a.m. UTC
We do not use the exit value from the child at all, but that's not a
reason to produce warnings.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 .../conformance/interfaces/mq_timedreceive/5-3.c                 | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Palethorpe July 5, 2022, 5:25 a.m. UTC | #1
Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>

Cyril Hrubis <chrubis@suse.cz> writes:

> We do not use the exit value from the child at all, but that's not a
> reason to produce warnings.
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
> ---
>  .../conformance/interfaces/mq_timedreceive/5-3.c                 | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> index a843c13ee..d79d9720d 100644
> --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
> @@ -110,5 +110,6 @@ int main(void)
>  		sleep(1);	/* give time to parent to set up handler */
>  		/* send signal to parent */
>  		kill(getppid(), SIGABRT);
> +		return 0;
>  	}
>  }
> -- 
> 2.35.1
diff mbox series

Patch

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
index a843c13ee..d79d9720d 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c
@@ -110,5 +110,6 @@  int main(void)
 		sleep(1);	/* give time to parent to set up handler */
 		/* send signal to parent */
 		kill(getppid(), SIGABRT);
+		return 0;
 	}
 }