aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-04 11:26:04 +0100
committerMax Kellermann <max@duempel.org>2008-11-04 11:26:04 +0100
commitd7b2d93ccc6ee435b41d28f8e31eeeacb3cad58f (patch)
treec46b7d13391caa8c2b3c69ba31869931555a8cf7
parent37696dcbbf5f1fbe901de269742218ae15b756a4 (diff)
downloadmpd-d7b2d93ccc6ee435b41d28f8e31eeeacb3cad58f.tar.gz
mpd-d7b2d93ccc6ee435b41d28f8e31eeeacb3cad58f.tar.xz
mpd-d7b2d93ccc6ee435b41d28f8e31eeeacb3cad58f.zip
osx: fix gcc warnings
Fix prototypes and unused variables.
-rw-r--r--src/output/osx_plugin.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index 5fbfc7c09..b368ed8a1 100644
--- a/src/output/osx_plugin.c
+++ b/src/output/osx_plugin.c
@@ -33,7 +33,7 @@ typedef struct _OsxData {
int started;
} OsxData;
-static OsxData *newOsxData()
+static OsxData *newOsxData(void)
{
OsxData *ret = xmalloc(sizeof(OsxData));
@@ -49,7 +49,7 @@ static OsxData *newOsxData()
return ret;
}
-static bool osx_testDefault()
+static bool osx_testDefault(void)
{
/*AudioUnit au;
ComponentDescription desc;
@@ -128,11 +128,12 @@ static void osx_closeDevice(void *data)
AudioUnitUninitialize(od->au);
}
-static OSStatus osx_render(void *vdata,
- AudioUnitRenderActionFlags * ioActionFlags,
- const AudioTimeStamp * inTimeStamp,
- UInt32 inBusNumber, UInt32 inNumberFrames,
- AudioBufferList * bufferList)
+static OSStatus
+osx_render(void *vdata,
+ mpd_unused AudioUnitRenderActionFlags * ioActionFlags,
+ mpd_unused const AudioTimeStamp * inTimeStamp,
+ mpd_unused UInt32 inBusNumber, mpd_unused UInt32 inNumberFrames,
+ AudioBufferList * bufferList)
{
OsxData *od = (OsxData *) vdata;
AudioBuffer *buffer = &bufferList->mBuffers[0];