From 10b3bc78f6e55a3a442f2da1f95f158ab158e648 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 3 Feb 2014 12:33:33 +0100 Subject: Fix warnings. Change-Id: If3cbcd7557797684f1b7fea8e1bb134777680dee --- apps/talk.c | 2 ++ apps/voice_thread.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/talk.c b/apps/talk.c index ab9ca8c495..13f323f4b6 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -312,6 +312,7 @@ static int id2index(int id) return index; } +#ifndef TALK_PROGRESSIVE_LOAD static int index2id(int index) { int id = index; @@ -329,6 +330,7 @@ static int index2id(int index) return id; } +#endif static int free_oldest_clip(void) { diff --git a/apps/voice_thread.c b/apps/voice_thread.c index dcb7eef224..d8a7b27d14 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c @@ -458,7 +458,7 @@ static enum voice_state voice_decode(struct voice_thread_data *td) else { if (td->vi.size > VOICE_MAX_ENCODED_FRAME_SIZE - && td->bits.charPtr > (td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE) + && td->bits.charPtr > (int)(td->vi.size - VOICE_MAX_ENCODED_FRAME_SIZE) && td->vi.get_more != NULL) { /* request more data _before_ running out of data (requesting -- cgit v1.2.3