audio/amused: fix sndio detection on gcc arches; no package changes.

The configure script failed to pick up sndio because the test for it was
lacking a final `return 0' and gcc complained that "control reaches the
end of non-void function".
This commit is contained in:
op 2022-07-21 14:21:49 +00:00
parent c56da5c31c
commit b74f154ad9

View File

@ -0,0 +1,21 @@
fix sndio detection: gcc complains that "control reaches end of non-void
function".
Index: tests.c
--- tests.c.orig
+++ 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 */