summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Andersson <hean01@cendio.com>2017-11-15 07:57:18 +0100
committerGitHub <noreply@github.com>2017-11-15 07:57:18 +0100
commitdf73c35ca4f56d5f0ed19e3363f1428e9e66e45d (patch)
tree6b6bb7e1014389664fb6f6d7cb9039cb09da0fc7
parentd037db10861eb119c50e7dad4d8666b786d33a2f (diff)
parentd6a8f145c4a9f439ab676bc2db1bc6c3d763bb01 (diff)
downloadrdesktop-df73c35ca4f56d5f0ed19e3363f1428e9e66e45d.zip
Merge pull request #195 from derfian/libao-compiler-warnings
Remove compiler warnings from rdpsnd_libao
-rw-r--r--rdpsnd_libao.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/rdpsnd_libao.c b/rdpsnd_libao.c
index 1642b13..ddf2eaf 100644
--- a/rdpsnd_libao.c
+++ b/rdpsnd_libao.c
@@ -41,6 +41,10 @@ void libao_play(void);
void
libao_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
{
+ UNUSED(n);
+ UNUSED(rfds);
+ UNUSED(tv);
+
/* We need to be called rather often... */
if (o_device != NULL && !rdpsnd_queue_empty())
FD_SET(0, wfds);
@@ -49,6 +53,9 @@ libao_add_fds(int *n, fd_set * rfds, fd_set * wfds, struct timeval *tv)
void
libao_check_fds(fd_set * rfds, fd_set * wfds)
{
+ UNUSED(rfds);
+ UNUSED(wfds);
+
if (o_device == NULL)
return;
@@ -143,7 +150,7 @@ libao_play(void)
STREAM out;
int len;
static long prev_s, prev_us;
- unsigned int duration;
+ int duration;
struct timeval tv;
int next_tick;