Message ID | 20220620092146.7604-7-chrubis@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | openposix: Fix 'no return in nonvoid function' warnings | expand |
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 --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; } }
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(+)