[LTP] [PATCH 0/7] openposix: Fix 'no return in nonvoid function' warnings

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


Fixes LTP compilation in build systems where the 'no return in nonvoid
function' warning is treated as error. More than half of the cases were
actually a buggy tests, which only shows that maybe treating this
warning as an error makes sense.

Cyril Hrubis (7):
  openposix: pthread_rwlockattr_getpshared/2-1: Fix
  openposix: pthread_spin_init/{2-1,2-2}: Fix
  openposix: sem_destroy/3-1: Fix
  openposix: sem_timedwait/11-1: Fix
  openposix: aio_h/2-1: Add return at the end of main()
  openposix: mq_timedreceive: Silence warning
  opeposix: pthread_barrierattr_getpshared/2-1: Simplify codeflow

 .../conformance/definitions/aio_h/2-1.c       |  2 ++
 .../interfaces/mq_timedreceive/5-3.c          |  1 +
 .../pthread_barrierattr_getpshared/2-1.c      | 11 +++----
 .../pthread_rwlockattr_getpshared/2-1.c       | 20 ++++++++++--
 .../interfaces/pthread_spin_init/2-1.c        | 20 ++++++++++--
 .../interfaces/pthread_spin_init/2-2.c        | 20 ++++++++++--
 .../conformance/interfaces/sem_destroy/3-1.c  | 31 +++++++++++++------
 .../interfaces/sem_timedwait/11-1.c           |  9 +++---
 8 files changed, 89 insertions(+), 25 deletions(-)

-- 
2.35.1



More information about the ltp mailing list