Bug 1033192 - Fix gcc and MSVC warnings in media/libcubeb/. r=padenot

This commit is contained in:
Chris Peterson 2014-07-01 19:02:56 -07:00
parent 01fc5ee208
commit aad0aaea7a
3 changed files with 7 additions and 2 deletions

View File

@ -49,7 +49,7 @@ struct cubeb_stream {
SLObjectItf playerObj;
SLPlayItf play;
SLBufferQueueItf bufq;
void *queuebuf[NBUFS];
uint8_t *queuebuf[NBUFS];
int queuebuf_idx;
long queuebuf_len;
long bytespersec;
@ -102,7 +102,7 @@ bufferqueue_callback(SLBufferQueueItf caller, void * user_ptr)
SLuint32 i;
for (i = state.count; i < NBUFS; i++) {
void *buf = stm->queuebuf[stm->queuebuf_idx];
uint8_t *buf = stm->queuebuf[stm->queuebuf_idx];
long written = 0;
pthread_mutex_lock(&stm->mutex);
int draining = stm->draining;

View File

@ -6,8 +6,11 @@
*/
#undef NDEBUG
#define __MSVCRT_VERSION__ 0x0700
#undef WINVER
#define WINVER 0x0501
#undef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#include <malloc.h>
#include <assert.h>
#include <windows.h>

View File

@ -70,3 +70,5 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
'system/media/wilhelm/include',
]
]
FAIL_ON_WARNINGS = True