Commit Diff
Commit:
f9756af54f66e33cd5a7beb324254f05470fc9a3
Date:
Thu Jul 21 13:47:51 2022
UTC
Message
fix sndio detection
the compiler may complain that there's no return:
tests.c: In function 'main':
tests.c:954: warning: control reaches end of non-void function
spotted by the OpenBSD bulk builds on sparc64 (using gcc 4.2)
--- tests.c
+++ tests.c
@@ -526,6 +526,7 @@ main(void)
hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1);
sio_flush(hdl);
sio_close(hdl);
+ return 0;
}
#endif /* TEST_SIO_FLUSH */
#if TEST_SCAN_SCALED
@@ -950,5 +951,6 @@ main(void)
struct sio_hdl *hdl;
hdl = sio_open(SIO_DEVANY, SIO_PLAY, 1);
sio_close(hdl);
+ return 0;
}
#endif /* TEST_LIB_SNDIO */
Omar Polo