diff options
author | pieterpalmers <pieterpalmers@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-01-06 13:34:09 +0000 |
---|---|---|
committer | pieterpalmers <pieterpalmers@0c269be4-1314-0410-8aa9-9f06e86f4224> | 2008-01-06 13:34:09 +0000 |
commit | b64fcc53e3ef8a7c1855109fd720a4ddbc81cb56 (patch) | |
tree | 62cb681a28c19890464a52007d7c5674bbe3dae7 | |
parent | fcd5ea56a25242ae291f0057c407cb5fe4226715 (diff) | |
download | jack1-b64fcc53e3ef8a7c1855109fd720a4ddbc81cb56.tar.gz |
some fixes for compilation warnings/errors
(by Nedko)
git-svn-id: svn+ssh://jackaudio.org/trunk/jack@1076 0c269be4-1314-0410-8aa9-9f06e86f4224
-rw-r--r-- | drivers/dummy/dummy_driver.c | 2 | ||||
-rw-r--r-- | example-clients/tw.c | 2 | ||||
-rw-r--r-- | libjack/messagebuffer.c | 1 | ||||
-rw-r--r-- | libjack/unlock.c | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/drivers/dummy/dummy_driver.c b/drivers/dummy/dummy_driver.c index f11e834..802373f 100644 --- a/drivers/dummy/dummy_driver.c +++ b/drivers/dummy/dummy_driver.c @@ -43,7 +43,7 @@ void FakeVideoSync( dummy_driver_t *driver ) { - static const int VIDEO_SYNC_PERIOD = 48000 / 30; + #define VIDEO_SYNC_PERIOD (48000 / 30) static int vidCounter = VIDEO_SYNC_PERIOD; int period = driver->period_size; diff --git a/example-clients/tw.c b/example-clients/tw.c index 348f7af..3ba62cc 100644 --- a/example-clients/tw.c +++ b/example-clients/tw.c @@ -61,6 +61,8 @@ process (jack_nframes_t nframes, void* arg) jack_client_t* client = (jack_client_t*) arg; while ((nframes = jack_thread_wait (client, _process (nframes))) != 0); + + return 0; } /** diff --git a/libjack/messagebuffer.c b/libjack/messagebuffer.c index 38d2040..a636a0f 100644 --- a/libjack/messagebuffer.c +++ b/libjack/messagebuffer.c @@ -33,6 +33,7 @@ #include <jack/messagebuffer.h> #include <jack/atomicity.h> +#include <jack/internal.h> /* MB_NEXT() relies on the fact that MB_BUFFERS is a power of two */ #define MB_BUFFERS 128 diff --git a/libjack/unlock.c b/libjack/unlock.c index e365dad..b9a9046 100644 --- a/libjack/unlock.c +++ b/libjack/unlock.c @@ -25,6 +25,7 @@ #include <sys/mman.h> #include "jack/unlock.h" +#include "jack/internal.h" static char* blacklist[] = { "/libgtk", |