openbsd-ports/audio/amused/patches/patch-tests_c
op b74f154ad9 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".
2022-07-21 14:21:49 +00:00

22 lines
464 B
Plaintext

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 */